public class TokenInfo
extends com.sun.jna.Structure
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
flagsToString(int flags)
Convert flags to string.
|
static java.lang.String |
flagToString(int ckf)
Convert flags constant value to name.
|
java.lang.String |
getFirmwareVersion()
Firmware Version
|
int |
getFlags()
Token's Flags
|
int |
getFreePrivateMemory()
Free Private Memory
|
int |
getFreePublicMemory()
Free Public Memory
|
java.lang.String |
getHardwareVersion()
Hardware Version
|
java.lang.String |
getLabel()
Token's Label
|
java.lang.String |
getManufacturerID()
Token's Manufacturer ID
|
int |
getMaxPINLen()
Max PIN length
|
int |
getMaxRWSessionCount()
Max number of RW Sessions allowd by the token
|
int |
getMaxSessionCount()
Max number of Sessions allowd by the token
|
int |
getMinPINLen()
Min PIN length
|
java.lang.String |
getModel()
Token's model
|
int |
getRWSessionCount()
Current number of RW Sessions opened on the token
|
java.lang.String |
getSerialNumber()
Token's Serial Number
|
int |
getSessionCount()
Current number of Sessions opened on the token
|
int |
getTotalPrivateMemory()
Total Private Memory
|
int |
getTotalPublicMemory()
Total Public Memory
|
java.lang.String |
getUTCTime()
Time
|
java.lang.String |
toString() |
public static final int CKF_RNG
public static final int CKF_WRITE_PROTECTED
public static final int CKF_LOGIN_REQUIRED
public static final int CKF_USER_PIN_INITIALIZED
public static final int CKF_RESTORE_KEY_NOT_NEEDED
public static final int CKF_CLOCK_ON_TOKEN
public static final int CKF_PROTECTED_AUTHENTICATION_PATH
public static final int CKF_DUAL_CRYPTO_OPERATIONS
public static final int CKF_TOKEN_INITIALIZED
public static final int CKF_SECONDARY_AUTHENTICATION
public static final int CKF_USER_PIN_COUNT_LOW
public static final int CKF_USER_PIN_FINAL_TRY
public static final int CKF_USER_PIN_LOCKED
public static final int CKF_USER_PIN_TO_BE_CHANGED
public static final int CKF_SO_PIN_COUNT_LOW
public static final int CKF_SO_PIN_FINAL_TRY
public static final int CKF_SO_PIN_LOCKED
public static final int CKF_SO_PIN_TO_BE_CHANGED
public byte[] label
public byte[] manufacturerID
public byte[] model
public byte[] serialNumber
public com.sun.jna.NativeLong flags
public com.sun.jna.NativeLong ulMaxSessionCount
public com.sun.jna.NativeLong ulSessionCount
public com.sun.jna.NativeLong ulMaxRwSessionCount
public com.sun.jna.NativeLong ulRwSessionCount
public com.sun.jna.NativeLong ulMaxPinLen
public com.sun.jna.NativeLong ulMinPinLen
public com.sun.jna.NativeLong ulTotalPublicMemory
public com.sun.jna.NativeLong ulFreePublicMemory
public com.sun.jna.NativeLong ulTotalPrivateMemory
public com.sun.jna.NativeLong ulFreePrivateMemory
public Version hardwareVersion
public Version firmwareVersion
public byte[] utcTime
public static final java.lang.String flagToString(int ckf)
ckf
- valuepublic static java.lang.String flagsToString(int flags)
flags
- flagspublic java.lang.String toString()
toString
in class com.sun.jna.Structure
public java.lang.String getLabel()
public java.lang.String getManufacturerID()
public java.lang.String getModel()
public java.lang.String getSerialNumber()
public int getFlags()
public int getMaxSessionCount()
public int getSessionCount()
public int getMaxRWSessionCount()
public int getRWSessionCount()
public int getMaxPINLen()
public int getMinPINLen()
public int getTotalPublicMemory()
public int getFreePublicMemory()
public int getTotalPrivateMemory()
public int getFreePrivateMemory()
public java.lang.String getHardwareVersion()
public java.lang.String getFirmwareVersion()
public java.lang.String getUTCTime()