Package org.opends.server.extensions
Class NullKeyManagerProvider
- java.lang.Object
-
- org.opends.server.api.KeyManagerProvider<KeyManagerProviderCfg>
-
- org.opends.server.extensions.NullKeyManagerProvider
-
public class NullKeyManagerProvider extends KeyManagerProvider<KeyManagerProviderCfg>
This class provides an implementation of a key manager provider that does not actually have the ability to provide a key manager. It will be used when no other key manager provider has been defined in the server configuration.
-
-
Constructor Summary
Constructors Constructor Description NullKeyManagerProvider()Creates a new instance of this null key manager provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalizeKeyManagerProvider()Performs any finalization that may be necessary for this key manager provider.KeyManager[]getKeyManagers()Retrieves aKeyManagerobject that may be used for interactions requiring access to a key manager.voidinitializeKeyManagerProvider(KeyManagerProviderCfg configuration)Initializes this key manager provider based on the information in the provided key manager provider configuration.-
Methods inherited from class org.opends.server.api.KeyManagerProvider
containsAtLeastOneKey, containsKeyWithAlias, isConfigurationAcceptable
-
-
-
-
Method Detail
-
initializeKeyManagerProvider
public void initializeKeyManagerProvider(KeyManagerProviderCfg configuration) throws ConfigException, InitializationException
Description copied from class:KeyManagerProviderInitializes this key manager provider based on the information in the provided key manager provider configuration.- Specified by:
initializeKeyManagerProviderin classKeyManagerProvider<KeyManagerProviderCfg>- Parameters:
configuration- The key manager provider configuration that contains the information to use to initialize this key manager provider.- Throws:
ConfigException- If an unrecoverable problem arises in the process of performing the initialization as a result of the server configuration.InitializationException- If a problem occurs during initialization that is not related to the server configuration.
-
finalizeKeyManagerProvider
public void finalizeKeyManagerProvider()
Description copied from class:KeyManagerProviderPerforms any finalization that may be necessary for this key manager provider.- Specified by:
finalizeKeyManagerProviderin classKeyManagerProvider<KeyManagerProviderCfg>
-
getKeyManagers
public KeyManager[] getKeyManagers() throws DirectoryException
Retrieves aKeyManagerobject that may be used for interactions requiring access to a key manager.- Specified by:
getKeyManagersin classKeyManagerProvider<KeyManagerProviderCfg>- Returns:
- A
KeyManagerobject that may be used for interactions requiring access to a key manager. - Throws:
DirectoryException- If a problem occurs while attempting to obtain the set of key managers.
-
-