|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectiaik.pkcs.pkcs11.Slot
Objects of this class represet slots that can accpet tokens. The application can get a token object, if there is one present, by calling getToken. This may look like this:
Token token = slot.getToken();
// to ensure that there is a token present in the slot
if (token != null) {
// ... work with the token
}
SlotInfo,
Token| Field Summary | |
protected Module |
module_
The module that created this slot object. |
protected long |
slotID_
The indentifier of the slot. |
| Constructor Summary | |
protected |
Slot(Module module,
long slotID)
The constructor that takes a reference to the module and the slot ID. |
| Method Summary | |
boolean |
equals(Object otherObject)
Compares the slot ID and the module_ of this object with the slot ID and module_ of the other object. |
Module |
getModule()
Get the module that created this Slot object. |
long |
getSlotID()
Get the ID of this slot. |
SlotInfo |
getSlotInfo()
Get information about this slot object. |
Token |
getToken()
Get an object for handling the token that is currently present in this slot, or null, if there is no token present. |
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a hashtable. |
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 Module module_
protected long slotID_
| Constructor Detail |
protected Slot(Module module,
long slotID)
module - The reference to the module of this slot.slotID - The identifier of the slot.| Method Detail |
public boolean equals(Object otherObject)
otherObject - The other Slot object.
public Module getModule()
public long getSlotID()
public SlotInfo getSlotInfo()
throws TokenException
TokenException - If reading the information fails.
public Token getToken()
throws TokenException
TokenException - If determining if a token is present fails.public int hashCode()
public String toString()
|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||