Package org.forgerock.audit.providers
Class DefaultKeyStoreHandlerProvider
java.lang.Object
org.forgerock.audit.providers.DefaultKeyStoreHandlerProvider
- All Implemented Interfaces:
KeyStoreHandlerProvider
Default implementation of
KeyStoreHandlerProvider
.
Multiple KeyStoreHandler instances can be provided, identified by a name.
-
Constructor Summary
ConstructorDescriptionCreates a initially empty provider.DefaultKeyStoreHandlerProvider
(Map<String, KeyStoreHandler> handlers) Creates a provider with someKeyStoreHandler
instances. -
Method Summary
Modifier and TypeMethodDescriptiongetKeystoreHandler
(String name) Returns the keystore handler corresponding to the given name.void
registerKeyStoreHandler
(String name, KeyStoreHandler handler) Register a storage with the given name.
-
Constructor Details
-
DefaultKeyStoreHandlerProvider
public DefaultKeyStoreHandlerProvider()Creates a initially empty provider. -
DefaultKeyStoreHandlerProvider
Creates a provider with someKeyStoreHandler
instances.- Parameters:
handlers
- The storage instances to use in the provider.
-
-
Method Details
-
registerKeyStoreHandler
Register a storage with the given name.- Parameters:
name
- Name associated to theKeyStoreHandler
instance.handler
- The storage instance.
-
getKeystoreHandler
Description copied from interface:KeyStoreHandlerProvider
Returns the keystore handler corresponding to the given name.- Specified by:
getKeystoreHandler
in interfaceKeyStoreHandlerProvider
- Parameters:
name
- The name of instance to retrieve- Returns:
- the keystore handler
-