public class State
extends java.lang.Object
implements java.lang.Cloneable
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 |
---|---|
java.lang.Object |
clone()
Create a (deep) clone of this object.
|
boolean |
equals(java.lang.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.
|
java.lang.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 java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- The other State object.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
IAIK 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