Enum Class PropertyFormat
- All Implemented Interfaces:
Serializable
,Comparable<PropertyFormat>
,java.lang.constant.Constable
,SecretPropertyFormat
,SecretDecoder
@EvolvingAll
public enum PropertyFormat
extends Enum<PropertyFormat>
implements SecretPropertyFormat
Supported property formats for file-based and system/environment variable properties.
- Since:
- AM 6.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA base64-encoded binary value.Deprecated.A base64-encoded binary value encrypted with AM's server key.Deprecated.PreferENCRYPTED_PEM
for keys.Certificates, keys, and passwords in Privacy Enhanced Mail (PEM) format that have then been encrypted with AM's password-based encryption.A text value encrypted with AM's server encryption key.A base64-encoded value that has been encrypted with Google Cloud Platform Key Management Service.Deprecated.PreferGOOGLE_KMS_ENCRYPTED_PEM
for keys.Certificates, keys, and passwords in Privacy Enhanced Mail (PEM) format that have then been encrypted with Google KMS.Decodes a JSON Web Key (JWK) as a secret.Certificates, keys, and passwords in Privacy Enhanced Mail (PEM) format.A plain text value. -
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 TypeMethodDescriptionstatic PropertyFormat
Returns the enum constant of this class with the specified name.static PropertyFormat[]
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
decode, decodeToPromise, decodeToPromise
-
Enum Constant Details
-
PLAIN
A plain text value. The UTF-8 bytes of the value are used as the secret. -
BASE64
A base64-encoded binary value. -
ENCRYPTED_PLAIN
A text value encrypted with AM's server encryption key. The value will be decrypted withDecodeAction
and the UTF-8 bytes used as the secret. -
ENCRYPTED_BASE64
A base64-encoded binary value encrypted with AM's server key. The value is decrypted withDecodeAction
and then base64-decoded. -
ENCRYPTED_HMAC_KEY
Deprecated.PreferENCRYPTED_PEM
for keys.A base64-encoded binary secret HMAC key encrypted with AM's server key. The values is decrypted withDecodeAction
then base64-decoded and passed toSecretKeyPropertyFormat
. -
BASE64_HMAC_KEY
Deprecated.PreferPEM
for keys.A base64-encoded binary secret HMAC key. The values base64-decoded and passed toSecretKeyPropertyFormat
. -
GOOGLE_KMS_ENCRYPTED
A base64-encoded value that has been encrypted with Google Cloud Platform Key Management Service. The secret will be decrypted using the KMS key named by theorg.forgerock.openam.secrets.googlekms.decryptionkey
system property. The GCP SDK will automatically load KMS credentials from the environment. -
GOOGLE_KMS_ENCRYPTED_HMAC_KEY
Deprecated.PreferGOOGLE_KMS_ENCRYPTED_PEM
for keys.A base64-encoded value that has been encrypted with Google Cloud Platform Key Management Service. The secret will be decrypted using the KMS key named by theorg.forgerock.openam.secrets.googlekms.decryptionkey
system property. The GCP SDK will automatically load KMS credentials from the environment. The decrypted value will be interpreted as a HMAC key. -
PEM
Certificates, keys, and passwords in Privacy Enhanced Mail (PEM) format. This format is widely supported by tools such as OpenSSL. Encrypted private keys can be decrypted using passwords configured for theLabels.PEM_PRIVATE_KEY_DECRYPTION
secret ID. This currently only supports loading passwords from global secret stores. -
ENCRYPTED_PEM
Certificates, keys, and passwords in Privacy Enhanced Mail (PEM) format that have then been encrypted with AM's password-based encryption. The value is decrypted withENCRYPTED_PLAIN
and then passed to thePEM
decoder. -
GOOGLE_KMS_ENCRYPTED_PEM
Certificates, keys, and passwords in Privacy Enhanced Mail (PEM) format that have then been encrypted with Google KMS. The value is decrypted withGOOGLE_KMS_ENCRYPTED
and then passed to thePEM
decoder. -
JWK
Decodes a JSON Web Key (JWK) as a secret.
-
-
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
-
PEM
for keys.