public class TokenInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
EFFECTIVELY_INFINITE
This is the value which can be used for ulMaxSessionCount and
ulMaxRwSessionCount to express an infinite number.
|
static long |
UNAVAILABLE_INFORMATION
This is the value which can be used for ulMaxSessionCount,
ulSessionCount, ulMaxRwSessionCount, ulRwSessionCount,
ulTotalPublicMemory, ulFreePublicMemory, ulTotalPrivateMemory, and
ulFreePrivateMemory to signal that the information is unavailable.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TokenInfo(sun.security.pkcs11.wrapper.CK_TOKEN_INFO ckTokenInfo)
Constructor taking CK_TOKEN_INFO as given returned by
PKCS11.C_GetTokenInfo.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object otherObject)
Compares all member variables of this object with the other object.
|
Version |
getFirmwareVersion()
Get the version of the token's firmware.
|
long |
getFlags()
Return the token flags.
|
long |
getFreePrivateMemory()
Get the amount of free memory for private objects.
|
long |
getFreePublicMemory()
Get the amount of free memory for public objects.
|
Version |
getHardwareVersion()
Get the version of the token's hardware.
|
String |
getLabel()
Get the label of this token.
|
String |
getManufacturerID()
Get the manufacturer identifier.
|
long |
getMaxPinLen()
Get the maximum length for the PIN.
|
long |
getMaxRwSessionCount()
Get the maximum allowed number of (open) concurrent read-write sessions.
|
long |
getMaxSessionCount()
Get the maximum allowed number of (open) concurrent sessions.
|
long |
getMinPinLen()
Get the minimum length for the PIN.
|
String |
getModel()
Get the model of this token.
|
long |
getRwSessionCount()
Get the current number of open read-write sessions.
|
String |
getSerialNumber()
Get the serial number of this token.
|
long |
getSessionCount()
Get the current number of open sessions.
|
Date |
getTime()
Get the current time of the token's clock.
|
long |
getTotalPrivateMemory()
Get the total amount of memory for private objects.
|
long |
getTotalPublicMemory()
Get the total amount of memory for public objects.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this
class work correctly in a hashtable.
|
boolean |
isClockOnToken()
Check, if the token has an own clock.
|
boolean |
isDualCryptoOperations()
Check, if the token supports dual crypto operations.
|
boolean |
isLoginRequired()
Check, if the token requires the user to log in before certain operations
can be performed.
|
boolean |
isProtectedAuthenticationPath()
Check, if the token has an protected authentication path.
|
boolean |
isRestoreKeyNotNeeded()
Check, if a successful save of a session's cryptographic operations
state always contains all keys needed to restore the state of the
session.
|
boolean |
isRNG()
Check, if the token has a random number generator.
|
boolean |
isSecondaryAuthentication()
Check, if the token supports secondary authentication for private key
objects.
|
boolean |
isSoPinCountLow()
Check, if the security officer-PIN has been entered incorrectly at least
once since the last successful authentication.
|
boolean |
isSoPinFinalTry()
Check, if the security officer has just one try left to supply the
correct PIN before the security officer-PIN gets locked.
|
boolean |
isSoPinLocked()
Check, if the security officer-PIN is locked.
|
boolean |
isSoPinToBeChanged()
Check, if the security officer PIN value is the default value set by
token initialization or manufacturing.
|
boolean |
isTokenInitialized()
Check, if the token is already initialized.
|
boolean |
isUserPinCountLow()
Check, if the user-PIN has been entered incorrectly at least once since
the last successful authentication.
|
boolean |
isUserPinFinalTry()
Check, if the user has just one try left to supply the correct PIN before
the user-PIN gets locked.
|
boolean |
isUserPinInitialized()
Check, if the user-PIN is already initialized.
|
boolean |
isUserPinLocked()
Check, if the user-PIN is locked.
|
boolean |
isUserPinToBeChanged()
Check, if the user PIN value is the default value set by token
initialization or manufacturing.
|
boolean |
isWriteProtected()
Check, if the token is write protected.
|
String |
toString()
Returns the string representation of this object.
|
public static final long EFFECTIVELY_INFINITE
public static final long UNAVAILABLE_INFORMATION
protected TokenInfo(sun.security.pkcs11.wrapper.CK_TOKEN_INFO ckTokenInfo)
ckTokenInfo - The CK_TOKEN_INFO object as returned by
PKCS11.C_GetTokenInfo.public String getLabel()
public String getManufacturerID()
public String getModel()
public String getSerialNumber()
public long getMaxSessionCount()
public long getSessionCount()
public long getMaxRwSessionCount()
public long getRwSessionCount()
public long getMaxPinLen()
public long getMinPinLen()
public long getTotalPublicMemory()
public long getFreePublicMemory()
public long getTotalPrivateMemory()
public long getFreePrivateMemory()
public Version getHardwareVersion()
public Version getFirmwareVersion()
public Date getTime()
isClockOnToken()public long getFlags()
public boolean isRNG()
public boolean isWriteProtected()
public boolean isLoginRequired()
public boolean isUserPinInitialized()
public boolean isRestoreKeyNotNeeded()
public boolean isClockOnToken()
public boolean isProtectedAuthenticationPath()
public boolean isDualCryptoOperations()
public boolean isTokenInitialized()
public boolean isSecondaryAuthentication()
public boolean isUserPinCountLow()
public boolean isUserPinFinalTry()
public boolean isUserPinLocked()
public boolean isUserPinToBeChanged()
public boolean isSoPinCountLow()
public boolean isSoPinFinalTry()
public boolean isSoPinLocked()
public boolean isSoPinToBeChanged()
public String toString()
public boolean equals(Object otherObject)
Copyright © 2022. All rights reserved.