public class LDAPKeyManagerProvider extends KeyManagerProvider<org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg>
Constructor and Description |
---|
LDAPKeyManagerProvider()
Creates a new LDAP key manager provider.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg cfg) |
boolean |
containsAtLeastOneKey()
Verifies that the keystore has at least one usable key.
|
boolean |
containsKeyWithAlias(String alias)
Verifies that an alias is defined in the scope of this Key Manager.
|
void |
finalizeKeyManagerProvider()
Performs any finalization that may be necessary for this key
manager provider.
|
KeyManager[] |
getKeyManagers()
Retrieves a set of
KeyManager objects that may be used
for interactions requiring access to a key manager. |
void |
initializeKeyManagerProvider(org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg cfg)
Initializes this key manager provider based on the information in
the provided key manager provider configuration.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg cfg,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for
this key manager provider.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg cfg,
List<LocalizableMessage> unacceptableReasons) |
public LDAPKeyManagerProvider()
public void initializeKeyManagerProvider(org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg cfg) throws InitializationException
KeyManagerProvider
initializeKeyManagerProvider
in class KeyManagerProvider<org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg>
cfg
- The key manager provider configuration that contains the
information to use to initialize this key manager
provider.InitializationException
- If a problem occurs during initialization that is not
related to the server configuration.public void finalizeKeyManagerProvider()
KeyManagerProvider
finalizeKeyManagerProvider
in class KeyManagerProvider<org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg>
public boolean containsKeyWithAlias(String alias)
KeyManagerProvider
containsKeyWithAlias
in class KeyManagerProvider<org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg>
alias
- The alias to check.public KeyManager[] getKeyManagers() throws DirectoryException
KeyManagerProvider
KeyManager
objects that may be used
for interactions requiring access to a key manager.getKeyManagers
in class KeyManagerProvider<org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg>
KeyManager
objects that may be used for
interactions requiring access to a key manager.DirectoryException
- If a problem occurs while attempting
to obtain the set of key managers.public boolean containsAtLeastOneKey()
KeyManagerProvider
containsAtLeastOneKey
in class KeyManagerProvider<org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg>
public boolean isConfigurationAcceptable(org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg cfg, List<LocalizableMessage> unacceptableReasons)
KeyManagerProvider
isConfigurationAcceptable
in class KeyManagerProvider<org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg>
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.true
if the provided configuration is acceptable
for this key manager provider, or false
if not.public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg cfg, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg cfg)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.LdapKeyManagerProviderCfg>
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.