public class State extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
code
The status code of this state as defined in PKCS#11.
|
static State |
RO_PUBLIC_SESSION
Constant for a read-only public session.
|
static State |
RO_USER_FUNCTIONS
Constant for a read-only user session.
|
static State |
RW_PUBLIC_SESSION
Constant for a read-write public session.
|
static State |
RW_SO_FUNCTIONS
Constant for a read-write security officer session.
|
static State |
RW_USER_FUNCTIONS
Constant for a read-write user session.
|
| Modifier | Constructor and Description |
|---|---|
protected |
State(long code)
Constructor that simply takes the status code as defined in PKCS#11.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object otherObject)
Compares the state code of this object with the other
object.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this
class work correctly in a hashtable.
|
String |
toString()
Returns the string representation of this object.
|
public static final State RO_PUBLIC_SESSION
public static final State RO_USER_FUNCTIONS
public static final State RW_PUBLIC_SESSION
public static final State RW_USER_FUNCTIONS
public static final State RW_SO_FUNCTIONS
protected long code
protected State(long code)
code - One of: PKCS11Constants.CKS_RO_PUBLIC_SESSION,
PKCS11Constants.CKS_RO_USER_FUNCTIONS,
PKCS11Constants.CKS_RW_PUBLIC_SESSION,
PKCS11Constants.CKS_RW_USER_FUNCTIONS or
PKCS11Constants.CKS_RW_SO_FUNCTIONS.public boolean equals(Object otherObject)
public int hashCode()
Copyright © 2022. All rights reserved.