Top Description Fields Constructors Methods
sun.security.pkcs11.wrapper

public Class CK_TOKEN_INFO

extends Object
Class Inheritance

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;
  
Authors
Karl Scheibelhofer , Martin Schlaeffer

Field Summary

Modifier and TypeField and Description
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];

Constructor Summary

AccessConstructor and Description
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)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the string representation of CK_TOKEN_INFO
toString
()

Overrides java.lang.Object.toString.

Returns the string representation of CK_TOKEN_INFO.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

firmwareVersionback to summary
public CK_VERSION firmwareVersion

PKCS#11:

  CK_VERSION firmwareVersion;
flagsback to summary
public long flags

PKCS#11:

  CK_FLAGS flags;
hardwareVersionback to summary
public CK_VERSION hardwareVersion

PKCS#11:

  CK_VERSION hardwareVersion;
labelback to summary
public char[] label

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

PKCS#11:

  CK_UTF8CHAR label[32];
manufacturerIDback to summary
public char[] manufacturerID

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

PKCS#11:

  CK_UTF8CHAR manufacturerID[32];
modelback to summary
public char[] model

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

PKCS#11:

  CK_UTF8CHAR model[16];
serialNumberback to summary
public char[] serialNumber

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

PKCS#11:

  CK_CHAR serialNumber[16];
ulFreePrivateMemoryback to summary
public long ulFreePrivateMemory

PKCS#11:

  CK_ULONG ulFreePrivateMemory;
ulFreePublicMemoryback to summary
public long ulFreePublicMemory

PKCS#11:

  CK_ULONG ulFreePublicMemory;
ulMaxPinLenback to summary
public long ulMaxPinLen

PKCS#11:

  CK_ULONG ulMaxPinLen;
ulMaxRwSessionCountback to summary
public long ulMaxRwSessionCount

PKCS#11:

  CK_ULONG ulMaxRwSessionCount;
ulMaxSessionCountback to summary
public long ulMaxSessionCount

PKCS#11:

  CK_ULONG ulMaxSessionCount;
ulMinPinLenback to summary
public long ulMinPinLen

PKCS#11:

  CK_ULONG ulMinPinLen;
ulRwSessionCountback to summary
public long ulRwSessionCount

PKCS#11:

  CK_ULONG ulRwSessionCount;
ulSessionCountback to summary
public long ulSessionCount

PKCS#11:

  CK_ULONG ulSessionCount;
ulTotalPrivateMemoryback to summary
public long ulTotalPrivateMemory

PKCS#11:

  CK_ULONG ulTotalPrivateMemory;
ulTotalPublicMemoryback to summary
public long ulTotalPublicMemory

PKCS#11:

  CK_ULONG ulTotalPublicMemory;
utcTimeback to summary
public char[] utcTime

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

  CK_CHAR utcTime[16];

Constructor Detail

CK_TOKEN_INFOback to summary
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)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the string representation of CK_TOKEN_INFO.

Returns:String

the string representation of CK_TOKEN_INFO