Package org.opends.server.extensions
Class LDAPKeyManagerProvider
java.lang.Object
org.opends.server.api.KeyManagerProvider<LdapKeyManagerProviderCfg>
org.opends.server.extensions.LDAPKeyManagerProvider
- All Implemented Interfaces:
ConfigurationChangeListener<LdapKeyManagerProviderCfg>
public final class LDAPKeyManagerProvider
extends KeyManagerProvider<LdapKeyManagerProviderCfg>
implements ConfigurationChangeListener<LdapKeyManagerProviderCfg>
This class defines a key manager provider that will access keys stored in an LDAP backend.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opends.server.api.KeyManagerProvider
KeyManagerProvider.CertificateMonitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies the configuration changes to this change listener.booleanVerifies that the keystore has at least one usable key.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.voidInitializes this key manager provider based on the information in the provided key manager provider configuration.booleanisConfigurationAcceptable(LdapKeyManagerProviderCfg cfg, List<LocalizableMessage> unacceptableReasons) Indicates whether the provided configuration is acceptable for this key manager provider.booleanisConfigurationChangeAcceptable(LdapKeyManagerProviderCfg cfg, 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
finalizeKeyManagerProvider, getConfig, getName, getServerContext, registerCertificateMonitorEntries, setConfig, setServerContext, toString
-
Constructor Details
-
LDAPKeyManagerProvider
public LDAPKeyManagerProvider()
-
-
Method Details
-
initializeKeyManagerProvider
Description copied from class:KeyManagerProviderInitializes this key manager provider based on the information in the provided key manager provider configuration.- Specified by:
initializeKeyManagerProviderin classKeyManagerProvider<LdapKeyManagerProviderCfg>- Parameters:
cfg- The key manager provider configuration that contains the information to use to initialize this key manager provider.
-
getKeyStore
Description copied from class:KeyManagerProviderReturns the keystore used by this key manager provider.- Specified by:
getKeyStorein classKeyManagerProvider<LdapKeyManagerProviderCfg>- Returns:
- The
KeyStoreused by this key manager provider.
-
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<LdapKeyManagerProviderCfg>
-
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<LdapKeyManagerProviderCfg>- Returns:
- A set of
KeyManagerobjects that may be used for interactions requiring access to a key manager. - Throws:
LdapException- If a problem occurs while attempting to obtain the set of key managers.
-
containsAtLeastOneKey
public boolean containsAtLeastOneKey()Description copied from class:KeyManagerProviderVerifies that the keystore has at least one usable key.- Overrides:
containsAtLeastOneKeyin classKeyManagerProvider<LdapKeyManagerProviderCfg>- Returns:
- true if the keystore has at least one usable key, false otherwise
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(LdapKeyManagerProviderCfg cfg, 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<LdapKeyManagerProviderCfg>- Parameters:
cfg- 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(LdapKeyManagerProviderCfg cfg, 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<LdapKeyManagerProviderCfg>- Parameters:
cfg- 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<LdapKeyManagerProviderCfg>- Parameters:
cfg- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-