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.SerializableA 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 booleanequals(java.lang.Object other)Checks if the given object equals to this object.inthashCode()Returns the hash code.static KeyStatetoKeyState(java.lang.String state)Converts a string into a key state object.java.lang.StringtoString()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:
equalsin 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:
hashCodein classjava.lang.Object- Returns:
- hash code
-
toString
public java.lang.String toString()
Return the string-representation of this object.- Overrides:
toStringin 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
-
-