@Singleton public class Secrets extends Object
This type (including all methods, constructors and fields) is continuing to evolve and so should be expected to change, potentially in backwards-incompatible ways even in a minor release. Changes are documented at the time of product release.
Constructor and Description |
---|
Secrets(AnnotatedServiceRegistry serviceRegistry)
DI constructor for the
Secrets class. |
Modifier and Type | Method and Description |
---|---|
SecretsProviderFacade |
getGlobalSecrets()
Get the global secrets provider for the realm.
|
SecretsProviderFacade |
getRealmSecrets(Realm realm)
Get a secrets provider for the realm.
|
protected SecretsReferenceProvider |
getSecretsReferenceProvider(List<SecretStore> allStores) |
boolean |
isGlobalSecretsService(String serviceName)
Check to see if this is a purpose.
|
boolean |
isSecretService(String serviceName)
Check to see if a service is a Secret API service.
|
void |
registerSecretStore(Class<? extends BaseSecretStoreProvider> storeType)
Register a secret store type.
|
void |
start()
Start the secrets service.
|
@Inject public Secrets(AnnotatedServiceRegistry serviceRegistry)
Secrets
class.serviceRegistry
- The service registry for annotated services, which all configuration-based secret stores
are expected to be.public void registerSecretStore(Class<? extends BaseSecretStoreProvider> storeType)
storeType
- The type of the secrets store.public void start()
public SecretsProviderFacade getGlobalSecrets() throws SecretException
SecretException
- In the case of failure to read configuration.public SecretsProviderFacade getRealmSecrets(Realm realm) throws SecretException
realm
- The realm.SecretException
- In the case of failure to read configuration.public boolean isSecretService(String serviceName)
serviceName
- The name of the service to check.public boolean isGlobalSecretsService(String serviceName)
serviceName
- The name of the service to check.protected SecretsReferenceProvider getSecretsReferenceProvider(List<SecretStore> allStores)
Copyright © 2010-2018, ForgeRock All Rights Reserved.