public class PKCS11KeyManagerProvider extends KeyManagerProvider<org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg>
| Constructor and Description |
|---|
PKCS11KeyManagerProvider()
Creates a new instance of this PKCS#11 key manager provider.
|
| Modifier and Type | Method and Description |
|---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg configuration) |
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.PKCS11KeyManagerProviderCfg configuration)
Initializes this key manager provider based on the information in
the provided key manager provider configuration.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for
this key manager provider.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons) |
containsAtLeastOneKey, containsKeyWithAliaspublic PKCS11KeyManagerProvider()
initializeKeyManagerProvider method must be called on the
resulting object before it may be used.public void initializeKeyManagerProvider(org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg configuration)
throws org.forgerock.opendj.config.server.ConfigException,
InitializationException
KeyManagerProviderinitializeKeyManagerProvider in class KeyManagerProvider<org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg>configuration - The key manager provider configuration that contains the
information to use to initialize this key manager
provider.org.forgerock.opendj.config.server.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.public void finalizeKeyManagerProvider()
KeyManagerProviderfinalizeKeyManagerProvider in class KeyManagerProvider<org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg>public KeyManager[] getKeyManagers() throws DirectoryException
KeyManagerProviderKeyManager objects that may be used
for interactions requiring access to a key manager.getKeyManagers in class KeyManagerProvider<org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg>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 isConfigurationAcceptable(org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
KeyManagerProviderisConfigurationAcceptable in class KeyManagerProvider<org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg>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.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.PKCS11KeyManagerProviderCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg>public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg configuration)
applyConfigurationChange in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.PKCS11KeyManagerProviderCfg>Copyright © 2010-2020 Wren Security. All Rights Reserved.