public class SessionInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
deviceError
An token specific error-code.
|
protected long |
flags
The flags.
|
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(sun.security.pkcs11.wrapper.CK_SESSION_INFO ckSessionInfo)
Constructor taking a CK_SESSION_INFO object that provides the
information.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected long slotID
protected State state
protected long deviceError
protected long flags
protected SessionInfo(sun.security.pkcs11.wrapper.CK_SESSION_INFO ckSessionInfo)
ckSessionInfo - The object providing the session information.public State getState()
public long getDeviceError()
public boolean isRwSession()
public boolean isSerialSession()
public String toString()
public boolean equals(Object otherObject)
Copyright © 2020. All rights reserved.