public class SessionInfo
extends java.lang.Object
The sturucture is defined as follows:
typedef struct CK_SESSION_INFO {
CK_SLOT_ID slotID;
CK_STATE state;
CK_FLAGS flags;
CK_ULONG ulDeviceError;
} CK_SESSION_INFO;
| Modifier and Type | Field and Description |
|---|---|
static long |
CKF_RW_SESSION
Indicates the session is read/write.
|
static long |
CKF_SERIAL_SESSION
Provided for backward compatibility.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDeviceError()
Returns the device error component.
|
long |
getFlags()
Returns the flags component.
|
long |
getSlotID()
Returns the slot ID component.
|
long |
getState()
Returns the state component.
|
boolean |
isFlagSet(long flag)
Indicates whether a given flag has been set.
|
java.lang.String |
toString()
Returns a
String representation of the SessionInfo
object. |
java.lang.String |
toString(boolean flagNames)
Returns a
String representation of the SessionInfo
object. |
public static final long CKF_RW_SESSION
public static final long CKF_SERIAL_SESSION
public long getSlotID()
public long getState()
public long getFlags()
public boolean isFlagSet(long flag)
flag - the flag being checkedtrue if the flag has been set; false
otherwisepublic long getDeviceError()
public java.lang.String toString()
String representation of the SessionInfo
object.
toString in class java.lang.ObjectString representation of the SessionInfo
objectpublic java.lang.String toString(boolean flagNames)
String representation of the SessionInfo
object.
flagNames - indicates that the flags component should be represented as a list of
the flags that have been set; otherwise the actual flag value will be
returnedString representation of the SessionInfo
object