Interface KeyStoreBasedSecretStoreProvider
-
- All Superinterfaces:
BaseSecretStoreProvider
,LockedSecretStoreProvider
@EvolvingAll public interface KeyStoreBasedSecretStoreProvider extends LockedSecretStoreProvider
An abstraction of initialising a keystore-basedBaseSecretStoreProvider
.- Since:
- AM 6.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description KeyStoreSecretStore
createStore(SecretsReferenceProvider secrets)
Create theKeyStoreSecretStore
from the configuration.default KeyStoreSecretStore
getStore(SecretsReferenceProvider secrets)
Get the commonsSecretStore
instance for this instance.org.forgerock.openam.sm.annotations.subconfigs.Multiple<PurposeMapping>
mappings()
The configured purposes for this key store.-
Methods inherited from interface org.forgerock.openam.secrets.BaseSecretStoreProvider
id
-
-
-
-
Method Detail
-
mappings
org.forgerock.openam.sm.annotations.subconfigs.Multiple<PurposeMapping> mappings()
The configured purposes for this key store.- Returns:
- The sub-configurations.
-
getStore
default KeyStoreSecretStore getStore(SecretsReferenceProvider secrets) throws SecretException
Description copied from interface:LockedSecretStoreProvider
Get the commonsSecretStore
instance for this instance.- Specified by:
getStore
in interfaceLockedSecretStoreProvider
- Parameters:
secrets
- A provider of secret references that can be used to obtain secrets that are needed to unlock theSecretStore
.- Returns:
- The instance.
- Throws:
SecretException
- If the store cannot be constructed for some reason.
-
createStore
KeyStoreSecretStore createStore(SecretsReferenceProvider secrets) throws SecretException
Create theKeyStoreSecretStore
from the configuration.- Parameters:
secrets
- The provider of secret references for resolving secrets that unlock the keystore.- Returns:
- The store.
- Throws:
SecretException
- If the store could not be created for some reason.
-
-