Enum Class KeyStoreType

java.lang.Object
java.lang.Enum<KeyStoreType>
io.spiffe.helper.keystore.KeyStoreType
All Implemented Interfaces:
Serializable, Comparable<KeyStoreType>, Constable

public enum KeyStoreType extends Enum<KeyStoreType>
KeyStore types supported by the KeyStoreHelper.
  • Enum Constant Details

  • Method Details

    • values

      public static KeyStoreType[] 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 KeyStoreType 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
    • value

      public String value()
    • getDefaultType

      public static KeyStoreType getDefaultType()
    • parse

      public static KeyStoreType parse(Object type)
      Parses an object to a KeyStoreType
      Parameters:
      type - an object representing a keystore type
      Returns:
      an instance of a KeyStoreType
      Throws:
      IllegalArgumentException - if the keystore type is unknown