Package org.opends.server.extensions
Class PemKeyManagerProvider
java.lang.Object
org.opends.server.api.KeyManagerProvider<PemKeyManagerProviderCfg>
org.opends.server.extensions.PemKeyManagerProvider
- All Implemented Interfaces:
ConfigurationChangeListener<PemKeyManagerProviderCfg>
public final class PemKeyManagerProvider
extends KeyManagerProvider<PemKeyManagerProviderCfg>
implements ConfigurationChangeListener<PemKeyManagerProviderCfg>
A
KeyManagerProvider that reads keys from PEM files in a configured file system directory and automatically
reacts to file modification, deletion or addition.-
Nested Class Summary
Nested classes/interfaces inherited from class org.opends.server.api.KeyManagerProvider
KeyManagerProvider.CertificateMonitor -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a PemKeyManagerProvider with the default clock. -
Method Summary
Modifier and TypeMethodDescriptionapplyConfigurationChange(PemKeyManagerProviderCfg configuration) Applies the configuration changes to this change listener.protected voidPerforms any other finalization actions that may be necessary by this key manager provider implementation.Retrieves a set ofKeyManagerobjects that may be used for interactions requiring access to a key manager.Returns the keystore used by this key manager provider.voidinitializeKeyManagerProvider(PemKeyManagerProviderCfg configuration) Initializes this key manager provider based on the information in the provided key manager provider configuration.booleanisConfigurationAcceptable(PemKeyManagerProviderCfg configuration, List<LocalizableMessage> unacceptableReasons) Indicates whether the provided configuration is acceptable for this key manager provider.booleanisConfigurationChangeAcceptable(PemKeyManagerProviderCfg configuration, List<LocalizableMessage> unacceptableReasons) Indicates whether the proposed change to the configuration is acceptable to this change listener.Methods inherited from class org.opends.server.api.KeyManagerProvider
containsAtLeastOneKey, finalizeKeyManagerProvider, getConfig, getName, getServerContext, registerCertificateMonitorEntries, setConfig, setServerContext, toString
-
Constructor Details
-
PemKeyManagerProvider
public PemKeyManagerProvider()Constructs a PemKeyManagerProvider with the default clock.
-
-
Method Details
-
initializeKeyManagerProvider
public void initializeKeyManagerProvider(PemKeyManagerProviderCfg configuration) throws 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<PemKeyManagerProviderCfg>- Parameters:
configuration- The key manager provider configuration that contains the information to use to initialize this key manager provider.- Throws:
InitializationException- If a problem occurs during initialization that is not related to the server configuration.
-
finalizeKeyManagerProviderImpl
protected void finalizeKeyManagerProviderImpl()Description copied from class:KeyManagerProviderPerforms any other finalization actions that may be necessary by this key manager provider implementation.- Specified by:
finalizeKeyManagerProviderImplin classKeyManagerProvider<PemKeyManagerProviderCfg>
-
getKeyManagers
Description copied from class:KeyManagerProviderRetrieves a set ofKeyManagerobjects that may be used for interactions requiring access to a key manager.- Specified by:
getKeyManagersin classKeyManagerProvider<PemKeyManagerProviderCfg>- Returns:
- A set of
KeyManagerobjects that may be used for interactions requiring access to a key manager.
-
getKeyStore
Description copied from class:KeyManagerProviderReturns the keystore used by this key manager provider.- Specified by:
getKeyStorein classKeyManagerProvider<PemKeyManagerProviderCfg>- Returns:
- The
KeyStoreused by this key manager provider.
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(PemKeyManagerProviderCfg configuration, List<LocalizableMessage> unacceptableReasons) Description copied from class:KeyManagerProviderIndicates whether the provided configuration is acceptable for this key manager provider. It should be possible to call this method on an uninitialized key manager provider instance in order to determine whether the key manager provider would be able to use the provided configuration.- Overrides:
isConfigurationAcceptablein classKeyManagerProvider<PemKeyManagerProviderCfg>- Parameters:
configuration- The key manager provider configuration for which to make the determination.unacceptableReasons- A list that may be used to hold the reasons that the provided configuration is not acceptable.- Returns:
trueif the provided configuration is acceptable for this key manager provider, orfalseif not.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(PemKeyManagerProviderCfg configuration, List<LocalizableMessage> unacceptableReasons) Description copied from interface:ConfigurationChangeListenerIndicates whether the proposed change to the configuration is acceptable to this change listener.- Specified by:
isConfigurationChangeAcceptablein interfaceConfigurationChangeListener<PemKeyManagerProviderCfg>- Parameters:
configuration- The new configuration containing the changes.unacceptableReasons- A list that can be used to hold messages about why the provided configuration is not acceptable.- Returns:
- Returns
trueif the proposed change is acceptable, orfalseif it is not.
-
applyConfigurationChange
Description copied from interface:ConfigurationChangeListenerApplies the configuration changes to this change listener.- Specified by:
applyConfigurationChangein interfaceConfigurationChangeListener<PemKeyManagerProviderCfg>- Parameters:
configuration- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-