public class

CK_TOKEN_INFO

extends Object
java.lang.Object
   ↳ sun.security.pkcs11.wrapper.CK_TOKEN_INFO

Class Overview

class CK_TOKEN_INFO provides information about a token.

PKCS#11 structure:

 typedef struct CK_TOKEN_INFO {  
   CK_UTF8CHAR label[32];  
   CK_UTF8CHAR manufacturerID[32];  
   CK_UTF8CHAR model[16];  
   CK_CHAR serialNumber[16];  
   CK_FLAGS flags;  
   CK_ULONG ulMaxSessionCount;  
   CK_ULONG ulSessionCount;  
   CK_ULONG ulMaxRwSessionCount;  
   CK_ULONG ulRwSessionCount;  
   CK_ULONG ulMaxPinLen;  
   CK_ULONG ulMinPinLen;  
   CK_ULONG ulTotalPublicMemory;  
   CK_ULONG ulFreePublicMemory;  
   CK_ULONG ulTotalPrivateMemory;  
   CK_ULONG ulFreePrivateMemory;  
   CK_VERSION hardwareVersion;  
   CK_VERSION firmwareVersion;  
   CK_CHAR utcTime[16];  
 } CK_TOKEN_INFO;
   
 

Summary

Fields
public CK_VERSION firmwareVersion PKCS#11:
   CK_VERSION firmwareVersion;
 
public long flags PKCS#11:
   CK_FLAGS flags;
 
public CK_VERSION hardwareVersion PKCS#11:
   CK_VERSION hardwareVersion;
 
public char[] label must be blank padded and only the first 32 chars will be used

PKCS#11:

   CK_UTF8CHAR label[32];
 
public char[] manufacturerID must be blank padded and only the first 32 chars will be used

PKCS#11:

   CK_UTF8CHAR manufacturerID[32];
 
public char[] model must be blank padded and only the first 16 chars will be used

PKCS#11:

   CK_UTF8CHAR model[16];
 
public char[] serialNumber must be blank padded and only the first 16 chars will be used

PKCS#11:

   CK_CHAR serialNumber[16];
 
public long ulFreePrivateMemory PKCS#11:
   CK_ULONG ulFreePrivateMemory;
 
public long ulFreePublicMemory PKCS#11:
   CK_ULONG ulFreePublicMemory;
 
public long ulMaxPinLen PKCS#11:
   CK_ULONG ulMaxPinLen;
 
public long ulMaxRwSessionCount PKCS#11:
   CK_ULONG ulMaxRwSessionCount;
 
public long ulMaxSessionCount PKCS#11:
   CK_ULONG ulMaxSessionCount;
 
public long ulMinPinLen PKCS#11:
   CK_ULONG ulMinPinLen;
 
public long ulRwSessionCount PKCS#11:
   CK_ULONG ulRwSessionCount;
 
public long ulSessionCount PKCS#11:
   CK_ULONG ulSessionCount;
 
public long ulTotalPrivateMemory PKCS#11:
   CK_ULONG ulTotalPrivateMemory;
 
public long ulTotalPublicMemory PKCS#11:
   CK_ULONG ulTotalPublicMemory;
 
public char[] utcTime only the first 16 chars will be used PKCS#11:
   CK_CHAR utcTime[16];
 
Public Constructors
CK_TOKEN_INFO(char[] label, char[] vendor, char[] model, char[] serialNo, long flags, long sessionMax, long session, long rwSessionMax, long rwSession, long pinLenMax, long pinLenMin, long totalPubMem, long freePubMem, long totalPrivMem, long freePrivMem, CK_VERSION hwVer, CK_VERSION fwVer, char[] utcTime)
Public Methods
String toString()
Returns the string representation of CK_TOKEN_INFO.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public CK_VERSION firmwareVersion

PKCS#11:

   CK_VERSION firmwareVersion;
 

public long flags

PKCS#11:

   CK_FLAGS flags;
 

public CK_VERSION hardwareVersion

PKCS#11:

   CK_VERSION hardwareVersion;
 

public char[] label

must be blank padded and only the first 32 chars will be used

PKCS#11:

   CK_UTF8CHAR label[32];
 

public char[] manufacturerID

must be blank padded and only the first 32 chars will be used

PKCS#11:

   CK_UTF8CHAR manufacturerID[32];
 

public char[] model

must be blank padded and only the first 16 chars will be used

PKCS#11:

   CK_UTF8CHAR model[16];
 

public char[] serialNumber

must be blank padded and only the first 16 chars will be used

PKCS#11:

   CK_CHAR serialNumber[16];
 

public long ulFreePrivateMemory

PKCS#11:

   CK_ULONG ulFreePrivateMemory;
 

public long ulFreePublicMemory

PKCS#11:

   CK_ULONG ulFreePublicMemory;
 

public long ulMaxPinLen

PKCS#11:

   CK_ULONG ulMaxPinLen;
 

public long ulMaxRwSessionCount

PKCS#11:

   CK_ULONG ulMaxRwSessionCount;
 

public long ulMaxSessionCount

PKCS#11:

   CK_ULONG ulMaxSessionCount;
 

public long ulMinPinLen

PKCS#11:

   CK_ULONG ulMinPinLen;
 

public long ulRwSessionCount

PKCS#11:

   CK_ULONG ulRwSessionCount;
 

public long ulSessionCount

PKCS#11:

   CK_ULONG ulSessionCount;
 

public long ulTotalPrivateMemory

PKCS#11:

   CK_ULONG ulTotalPrivateMemory;
 

public long ulTotalPublicMemory

PKCS#11:

   CK_ULONG ulTotalPublicMemory;
 

public char[] utcTime

only the first 16 chars will be used PKCS#11:

   CK_CHAR utcTime[16];
 

Public Constructors

public CK_TOKEN_INFO (char[] label, char[] vendor, char[] model, char[] serialNo, long flags, long sessionMax, long session, long rwSessionMax, long rwSession, long pinLenMax, long pinLenMin, long totalPubMem, long freePubMem, long totalPrivMem, long freePrivMem, CK_VERSION hwVer, CK_VERSION fwVer, char[] utcTime)

Public Methods

public String toString ()

Returns the string representation of CK_TOKEN_INFO.

Returns
  • the string representation of CK_TOKEN_INFO