com.netscape.certsrv.dbs.keydb
Class KeyState

java.lang.Object
  extended by com.netscape.certsrv.dbs.keydb.KeyState
All Implemented Interfaces:
java.io.Serializable

public final class KeyState
extends java.lang.Object
implements java.io.Serializable

A class represents key state. This object is to encapsulate the life cycle of a key.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $
See Also:
Serialized Form

Field Summary
static KeyState ANY
          Request state.
static KeyState INVALID
           
static KeyState VALID
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Checks if the given object equals to this object.
 int hashCode()
          Returns the hash code.
static KeyState toKeyState(java.lang.String state)
          Converts a string into a key state object.
 java.lang.String toString()
          Return the string-representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY

public static final KeyState ANY
Request state.


VALID

public static final KeyState VALID

INVALID

public static final KeyState INVALID
Method Detail

equals

public boolean equals(java.lang.Object other)
Checks if the given object equals to this object.

Overrides:
equals in class java.lang.Object
Parameters:
other - object to be compared
Returns:
true if both objects are the same

hashCode

public int hashCode()
Returns the hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
hash code

toString

public java.lang.String toString()
Return the string-representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
string value

toKeyState

public static KeyState toKeyState(java.lang.String state)
Converts a string into a key state object.

Parameters:
state - state in string-representation
Returns:
key state object