Package org.forgerock.openam.secrets
Class SecretsReferenceProvider
- java.lang.Object
-
- org.forgerock.openam.secrets.SecretsReferenceProvider
-
@EvolvingAll public class SecretsReferenceProvider extends Object
A class that can provide secret references for a given purpose.- Since:
- AM 6.5.0
-
-
Constructor Summary
Constructors Constructor Description SecretsReferenceProvider(SecretsProvider secretsProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Secret>
SecretReference<T>get(Purpose<T> purpose)
Get the reference for the secrets that fulfil the purpose.
-
-
-
Constructor Detail
-
SecretsReferenceProvider
public SecretsReferenceProvider(SecretsProvider secretsProvider)
-
-
Method Detail
-
get
public <T extends Secret> SecretReference<T> get(Purpose<T> purpose) throws UnavailableSecretReferenceException
Get the reference for the secrets that fulfil the purpose.- Type Parameters:
T
- The type of the secret.- Parameters:
purpose
- The purpose.- Returns:
- The reference.
- Throws:
UnavailableSecretReferenceException
-
-