public class SlotInfo
extends java.lang.Object
The structure defined as follows:
typedef struct CK_SLOT_INFO {
CK_UTF8CHAR slotDescription[64];
CK_UTF8CHAR manufacturerID[32];
CK_FLAGS flags;
CK_VERSION hardwareVersion;
CK_VERSION firmwareVersion;
} CK_SLOT_INFO;
| Modifier and Type | Field and Description |
|---|---|
static long |
CKF_HW_SLOT
Indicates the slot is a hardware slot, as opposed to a software slot
implementing a "soft token".
|
static long |
CKF_REMOVABLE_DEVICE
Indicates the reader supports removable devices.
|
static long |
CKF_TOKEN_PRESENT
Indicates a token is present in the slot.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFirmwareVersion()
Returns the firmware version component.
|
long |
getFlags()
Returns the flags component.
|
java.lang.String |
getHardwareVersion()
Returns the hardware version component.
|
java.lang.String |
getManufacturerID()
Returns the manufacturer ID component.
|
java.lang.String |
getSlotDescription()
Returns the slot description component.
|
boolean |
isFlagSet(long flag)
Indicates whether a given flag has been set.
|
java.lang.String |
toString()
Returns a
String representation of the SlotInfo
object. |
java.lang.String |
toString(boolean flagNames)
Returns a
String representation of the SlotInfo
object. |
public static final long CKF_TOKEN_PRESENT
public static final long CKF_REMOVABLE_DEVICE
public static final long CKF_HW_SLOT
public java.lang.String getSlotDescription()
String description of the slot.public java.lang.String getManufacturerID()
public long getFlags()
public boolean isFlagSet(long flag)
flag - the flag being checkedtrue if the flag has been set, otherwise
falsepublic java.lang.String getHardwareVersion()
public java.lang.String getFirmwareVersion()
public java.lang.String toString()
String representation of the SlotInfo
object.
toString in class java.lang.ObjectString representation of the SlotInfo
objectpublic java.lang.String toString(boolean flagNames)
String representation of the SlotInfo
object.
flagNames - this indicates that the flags component should be represented as a list
of the flags that have been set; otherwise the actual flag value will
be returnedSlotInfo object.