Package com.netscape.certsrv.dbs.keydb
Class KeyState
- java.lang.Object
-
- 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$, $Date$
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
Checks if the given object equals to this object.- Overrides:
equals
in classjava.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 classjava.lang.Object
- Returns:
- hash code
-
toString
public java.lang.String toString()
Return the string-representation of this object.- Overrides:
toString
in classjava.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
-
-