|
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.SessionInfo
An object of this class provides information about a session. The information provided is just a snapshot at the time this information object was created; it does not retrieve the information from the session on demand.
Field Summary | |
protected long |
deviceError_
An token specific error-code. |
protected boolean |
rwSession_
True, if this is a read-write session. |
protected boolean |
serialSession_
True, if this a serial session. |
protected long |
slotID_
The identifier of the slot in which the token resides this session is bound to. |
protected State |
state_
The current session state. |
Constructor Summary | |
protected |
SessionInfo(CK_SESSION_INFO ckSessionInfo)
Constructor taking a CK_SESSION_INFO object that provides the infromation. |
Method Summary | |
Object |
clone()
Create a (deep) clone of this object. |
boolean |
equals(Object otherObject)
Compares all member variables of this object with the other object. |
long |
getDeviceError()
Get the current device error-code of the token. |
State |
getState()
Get the current state of this session. |
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a hashtable. |
boolean |
isRwSession()
Check, if this is a read-write session. |
boolean |
isSerialSession()
Check, if this is a serial session. |
String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected long slotID_
protected State state_
protected long deviceError_
protected boolean rwSession_
protected boolean serialSession_
Constructor Detail |
protected SessionInfo(CK_SESSION_INFO ckSessionInfo)
ckSessionInfo
- The object providing the session information.Method Detail |
public Object clone()
public State getState()
public long getDeviceError()
public boolean isRwSession()
public boolean isSerialSession()
public String toString()
public boolean equals(Object otherObject)
otherObject
- The other SessionInfo 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 |