public class SlotInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Version |
firmwareVersion_
The version of the slot's firmware.
|
long |
flags |
protected Version |
hardwareVersion_
The version of the slot's hardware.
|
protected boolean |
hwSlot_
Indicate, if this slot is a hardware device or if it is just pure
software; i.e. no hardware involved, e.g. a softtoken.
|
protected java.lang.String |
manufacturerID_
A string identifying the manufacturer of this slot.
|
protected boolean |
removableDevice_
Indicates, if the token's in this slot are removable or not.
|
protected java.lang.String |
slotDescription_
A short descrption of this slot.
|
protected boolean |
tokenPresent_
Indicates, if a token is present.
|
Modifier | Constructor and Description |
---|---|
protected |
SlotInfo(CK_SLOT_INFO ckSlotInfo)
Constructor that takes the CK_SLOT_INFO object as given by
PKCS11.C_GetSlotInfo().
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherObject)
Compares all member variables of this object with the other object.
|
Version |
getFirmwareVersion()
Get the version of the slot's firmware.
|
Version |
getHardwareVersion()
Get the verion of the slot's hardware.
|
java.lang.String |
getManufacturerID()
Get an identifier for the manufacturer of this slot.
|
java.lang.String |
getSlotDescription()
Get a short description of this slot.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this class
work correctly in a hashtable.
|
boolean |
isHwSlot()
Indicate, if the token is a hardware device or if it is just a pure
software implementation; e.g. in case of a pure softwaretoken.
|
boolean |
isRemovableDevice()
Indicate, if the token is removalbe from this slot or not.
|
boolean |
isTokenPresent()
Indicates, if there is a token present in this slot.
|
java.lang.String |
toString()
Returns the string representation of this object.
|
protected java.lang.String slotDescription_
protected java.lang.String manufacturerID_
public long flags
protected Version hardwareVersion_
protected Version firmwareVersion_
protected boolean tokenPresent_
protected boolean removableDevice_
protected boolean hwSlot_
protected SlotInfo(CK_SLOT_INFO ckSlotInfo)
ckSlotInfo
- The CK_SLOT_INFO object as given by
PKCS11.C_GetSlotInfo().public java.lang.String getSlotDescription()
public java.lang.String getManufacturerID()
public Version getHardwareVersion()
public Version getFirmwareVersion()
public boolean isTokenPresent()
public boolean isRemovableDevice()
public boolean isHwSlot()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- The other SlotInfo object.public int hashCode()
hashCode
in class java.lang.Object
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.