Package org.forgerock.openam.secrets
Class SecretStoreContext
java.lang.Object
org.forgerock.openam.secrets.SecretStoreContext
Encapsulates the context in which a secret store is being instantiated.
-
Method Summary
Modifier and TypeMethodDescriptionProvides aDirectoryWatcherto use to monitor files and directories for changes.getRealm()The realm that the store is being instantiated in, orOptional.empty()if it is being created as a global store.Provides access to the service registry for looking up configuration that is associated with a secret store but configured elsewhere, such as service account settings.toString()
-
Method Details
-
getRealm
The realm that the store is being instantiated in, orOptional.empty()if it is being created as a global store.- Returns:
- the store realm.
-
getDirectoryWatcher
Provides aDirectoryWatcherto use to monitor files and directories for changes. This component may not be available on all platforms, in which case this method will returnOptional.empty().- Returns:
- the directory watcher, if one is available.
-
getServiceRegistry
Provides access to the service registry for looking up configuration that is associated with a secret store but configured elsewhere, such as service account settings.- Returns:
- the service registry.
-
toString
-