public class SessionInfo
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SessionInfo(CK_SESSION_INFO ckSessionInfo)
Constructor taking a CK_SESSION_INFO object that provides the infromation.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected long slotID_
protected State state_
protected long deviceError_
protected boolean rwSession_
protected boolean serialSession_
protected SessionInfo(CK_SESSION_INFO ckSessionInfo)
ckSessionInfo - The object providing the session information.public java.lang.Object clone()
clone in class java.lang.Objectpublic State getState()
public long getDeviceError()
public boolean isRwSession()
public boolean isSerialSession()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object otherObject)
equals in class java.lang.ObjectotherObject - The other SessionInfo object.public int hashCode()
hashCode in class java.lang.ObjectIAIK JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9