Enum Class YAACKeyManager.KeyType

java.lang.Object
java.lang.Enum<YAACKeyManager.KeyType>
org.ka2ddo.yaac.auth.YAACKeyManager.KeyType
All Implemented Interfaces:
Serializable, Comparable<YAACKeyManager.KeyType>, Constable
Enclosing class:
YAACKeyManager

public static enum YAACKeyManager.KeyType extends Enum<YAACKeyManager.KeyType>
Enumeration identifying different types of encryption keys that can be stored in the KeyManager.
  • Enum Constant Details

    • PRIVATE

      public static final YAACKeyManager.KeyType PRIVATE
      The private half of a public/private key pair.
    • PUBLIC

      public static final YAACKeyManager.KeyType PUBLIC
      The public half of a public/private key pair, generally as a signed certificate.
    • SECRET

      public static final YAACKeyManager.KeyType SECRET
      A symmetric key that will both encrypt and decrypt a message using symmetric encryption algorithms.
  • Method Details

    • values

      public static YAACKeyManager.KeyType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static YAACKeyManager.KeyType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null