public class TokenInfo extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
TokenInfo(CK_TOKEN_INFO ckTokenInfo)
Constructor taking CK_TOKEN_INFO as given returned by
PKCS11.C_GetTokenInfo.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Instant |
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.
|
boolean |
hasFlagBit(long flagMask) |
boolean |
isLoginRequired() |
boolean |
isProtectedAuthenticationPath() |
boolean |
isTokenInitialized() |
String |
toString()
Returns the string representation of this object.
|
String |
toString(String indent) |
protected TokenInfo(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 Instant getTime()
public long getFlags()
public boolean hasFlagBit(long flagMask)
public boolean isProtectedAuthenticationPath()
public boolean isLoginRequired()
public boolean isTokenInitialized()
public String toString()
Copyright © 2023. All rights reserved.