|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iaik.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. |
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. |
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(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. |
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String slotDescription_
protected java.lang.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 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
|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |