Package org.forgerock.audit.providers
Class DefaultKeyStoreHandlerProvider
- java.lang.Object
-
- org.forgerock.audit.providers.DefaultKeyStoreHandlerProvider
-
- All Implemented Interfaces:
KeyStoreHandlerProvider
public class DefaultKeyStoreHandlerProvider extends Object implements KeyStoreHandlerProvider
Default implementation ofKeyStoreHandlerProvider
.Multiple KeyStoreHandler instances can be provided, identified by a name.
-
-
Constructor Summary
Constructors Constructor Description DefaultKeyStoreHandlerProvider()
Creates a initially empty provider.DefaultKeyStoreHandlerProvider(Map<String,KeyStoreHandler> handlers)
Creates a provider with someKeyStoreHandler
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyStoreHandler
getKeystoreHandler(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 Detail
-
DefaultKeyStoreHandlerProvider
public DefaultKeyStoreHandlerProvider()
Creates a initially empty provider.
-
DefaultKeyStoreHandlerProvider
public DefaultKeyStoreHandlerProvider(Map<String,KeyStoreHandler> handlers)
Creates a provider with someKeyStoreHandler
instances.- Parameters:
handlers
- The storage instances to use in the provider.
-
-
Method Detail
-
registerKeyStoreHandler
public void registerKeyStoreHandler(String name, KeyStoreHandler handler)
Register a storage with the given name.- Parameters:
name
- Name associated to theKeyStoreHandler
instance.handler
- The storage instance.
-
getKeystoreHandler
public KeyStoreHandler getKeystoreHandler(String name)
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
-
-