|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--iaik.pkcs.pkcs11.State
Objects of this class show the state of a session. This state is only a snapshot of the session's state at the time this state object was created.
| Field Summary | |
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. |
| Constructor Summary | |
protected |
State(long code)
Constructor that simply takes the status code as defined in PKCS#11. |
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
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_
| Constructor Detail |
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.| Method Detail |
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object otherObject)
equals in class java.lang.ObjectotherObject - The other State object.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||