|
IAIK PKCS#11 Wrapper version 1.2.17 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiaik.pkcs.pkcs11.SlotInfo
Objects of this call provide information about a slot. A slot can be a smart card reader, for instancce. Notice that this object is immutable; i.e. it gets its state at object creation and does not alter afterwards. Thus, all information this object provides, is a snapshot at the object creation. This is especially important when calling isTokenPresent().
Field Summary | |
protected Version |
firmwareVersion_
The version of the slot's firmware. |
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 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 String |
slotDescription_
A short descrption of this slot. |
protected boolean |
tokenPresent_
Indicates, if a token is present. |
Constructor Summary | |
protected |
SlotInfo(CK_SLOT_INFO ckSlotInfo)
Constructor that takes the CK_SLOT_INFO object as given by PKCS11.C_GetSlotInfo(). |
Method Summary | |
boolean |
equals(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. |
String |
getManufacturerID()
Get an identifier for the manufacturer of this slot. |
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. |
String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String slotDescription_
protected String manufacturerID_
protected Version hardwareVersion_
protected Version firmwareVersion_
protected boolean tokenPresent_
protected boolean removableDevice_
protected boolean hwSlot_
Constructor Detail |
protected SlotInfo(CK_SLOT_INFO ckSlotInfo)
ckSlotInfo
- The CK_SLOT_INFO object as given by
PKCS11.C_GetSlotInfo().Method Detail |
public String getSlotDescription()
public String getManufacturerID()
public Version getHardwareVersion()
public Version getFirmwareVersion()
public boolean isTokenPresent()
public boolean isRemovableDevice()
public boolean isHwSlot()
public String toString()
public boolean equals(Object otherObject)
otherObject
- The other SlotInfo object.
public int hashCode()
|
IAIK PKCS#11 Wrapper version 1.2.17 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |