Class KeyState

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

public final class KeyState extends Object implements Serializable
A class represents key state. This object is to encapsulate the life cycle of a key.

Version:
$Revision$, $Date$
See Also:
  • Field Details

    • ANY

      public static final KeyState ANY
      Request state.
    • VALID

      public static final KeyState VALID
    • INVALID

      public static final KeyState INVALID
  • Method Details

    • equals

      public boolean equals(Object other)
      Checks if the given object equals to this object.
      Overrides:
      equals in class 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 Object
      Returns:
      hash code
    • toString

      public String toString()
      Return the string-representation of this object.
      Overrides:
      toString in class Object
      Returns:
      string value
    • toKeyState

      public static KeyState toKeyState(String state)
      Converts a string into a key state object.
      Parameters:
      state - state in string-representation
      Returns:
      key state object