Interface SecretPropertyFormat
- All Superinterfaces:
SecretDecoder
- All Known Implementing Classes:
JwkPropertyFormat,PemPropertyFormat,PropertyFormatBase64,SecretKeyPropertyFormat
Defines the format of secrets loaded from configuration properties.
-
Field Summary
FieldsFields inherited from interface org.forgerock.secrets.SecretDecoder
RAW -
Method Summary
Modifier and TypeMethodDescriptionDecodes the input property value, setting relevant properties on aSecretBuilderobject.default Promise<SecretBuilder,NoSuchSecretException> decodeToPromise(byte[] data) Decodes the data as a UTF-8 string and then callsdecodeToPromise(String)to decode the string value.default Promise<SecretBuilder,NoSuchSecretException> decodeToPromise(String propertyValue) Decodes the input property value, setting relevant properties on aSecretBuilderobject.
-
Field Details
-
PLAIN
Format with no encoding.
-
-
Method Details
-
decode
Decodes the input property value, setting relevant properties on aSecretBuilderobject.- Parameters:
propertyValue- the value of the secret property.- Returns:
- the decoded secret information.
- Throws:
NoSuchSecretException- If the property value does not contain a value that can be decoded.
-
decodeToPromise
Decodes the input property value, setting relevant properties on aSecretBuilderobject.- Parameters:
propertyValue- the value of the secret property.- Returns:
- a promise of the decoded secret information.
-
decodeToPromise
Decodes the data as a UTF-8 string and then callsdecodeToPromise(String)to decode the string value.- Specified by:
decodeToPromisein interfaceSecretDecoder- Parameters:
data- the raw secret data.- Returns:
- a promise of the decoded secret information.
-