|
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.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 | |
java.lang.Object |
clone()
Create a (deep) clone of this object. |
boolean |
equals(java.lang.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. |
java.lang.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 java.lang.Object clone()
clone
in class java.lang.Object
public State getState()
public long getDeviceError()
public boolean isRwSession()
public boolean isSerialSession()
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 SessionInfo 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 |