Package org.forgerock.secrets
Interface SecretDecoder
- All Known Subinterfaces:
SecretPropertyFormat
- All Known Implementing Classes:
JwkPropertyFormat
,PemPropertyFormat
,PropertyFormatBase64
,SecretKeyPropertyFormat
public interface SecretDecoder
Specifies how data retrieved from a
SecretStore
should 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
Modifier and TypeFieldDescriptionstatic final SecretDecoder
A decoder that populates the raw data of the secret. -
Method Summary
Modifier and TypeMethodDescriptiondecodeToPromise
(byte[] data) Decodes the raw data retrieved from a backend into aSecretBuilder
for further processing.
-
Field Details
-
RAW
A decoder that populates the raw data of the secret.
-
-
Method Details
-
decodeToPromise
Decodes the raw data retrieved from a backend into aSecretBuilder
for further processing.- Parameters:
data
- the raw secret data.- Returns:
- a promise of the decoded secret information.
-