Enum Class PropertyFormatBase64
- All Implemented Interfaces:
Serializable
,Comparable<PropertyFormatBase64>
,java.lang.constant.Constable
,SecretPropertyFormat
,SecretDecoder
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields inherited from interface org.forgerock.secrets.SecretDecoder
RAW
Fields inherited from interface org.forgerock.secrets.propertyresolver.SecretPropertyFormat
PLAIN
-
Method Summary
Modifier and TypeMethodDescriptionDecodes the input property value, setting relevant properties on aSecretBuilder
object.static PropertyFormatBase64
Returns the enum constant of this class with the specified name.static PropertyFormatBase64[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.forgerock.secrets.propertyresolver.SecretPropertyFormat
decodeToPromise, decodeToPromise
-
Enum Constant Details
-
BASE64
Traditional base64 encoding. -
BASE64URL
URL-safe base64 encoding.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
decode
Description copied from interface:SecretPropertyFormat
Decodes the input property value, setting relevant properties on aSecretBuilder
object.- Specified by:
decode
in interfaceSecretPropertyFormat
- Parameters:
propertyValue
- the value of the secret property.- Returns:
- the decoded secret information.
-