Enum Class PropertyFormatBase64

java.lang.Object
java.lang.Enum<PropertyFormatBase64>
org.forgerock.secrets.propertyresolver.PropertyFormatBase64
All Implemented Interfaces:
Serializable, Comparable<PropertyFormatBase64>, Constable, SecretPropertyFormat, SecretDecoder

public enum PropertyFormatBase64 extends Enum<PropertyFormatBase64> implements SecretPropertyFormat
Decodes secrets in raw base64 format. Such secrets are not encrypted or integrity protected. Typically this format should only be used for development purposes or for initial "bootstrap" secrets that are read from a secure location (e.g., Docker or Kubernetes secrets).
  • Enum Constant Details

  • Method Details

    • values

      public static PropertyFormatBase64[] 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 PropertyFormatBase64 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
    • decode

      public SecretBuilder decode(String propertyValue)
      Description copied from interface: SecretPropertyFormat
      Decodes the input property value, setting relevant properties on a SecretBuilder object.
      Specified by:
      decode in interface SecretPropertyFormat
      Parameters:
      propertyValue - the value of the secret property.
      Returns:
      the decoded secret information.