Package org.forgerock.secrets
Interface SecretDecoder
-
- All Known Subinterfaces:
SecretPropertyFormat
- All Known Implementing Classes:
JwkPropertyFormat,PemPropertyFormat,PropertyFormatBase64,SecretKeyPropertyFormat
public interface SecretDecoderSpecifies how data retrieved from aSecretStoreshould be decoded into a secret object. This interface is used when there may be multiple ways to interpret the data being retrieved. For example, a file containing secret data could be raw binary data or it could be a PEM-encoded certificate.
-
-
Field Summary
Fields Modifier and Type Field Description static SecretDecoderRAWA decoder that populates the raw data of the secret.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Promise<SecretBuilder,NoSuchSecretException>decodeToPromise(byte[] data)Decodes the raw data retrieved from a backend into aSecretBuilderfor further processing.
-
-
-
Field Detail
-
RAW
static final SecretDecoder RAW
A decoder that populates the raw data of the secret.
-
-
Method Detail
-
decodeToPromise
Promise<SecretBuilder,NoSuchSecretException> decodeToPromise(byte[] data)
Decodes the raw data retrieved from a backend into aSecretBuilderfor further processing.- Parameters:
data- the raw secret data.- Returns:
- a promise of the decoded secret information.
-
-