public class Pkcs11TrustManagerProvider extends TrustManagerProvider<Pkcs11TrustManagerProviderCfg> implements ConfigurationChangeListener<Pkcs11TrustManagerProviderCfg>
Constructor and Description |
---|
Pkcs11TrustManagerProvider() |
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationChange(Pkcs11TrustManagerProviderCfg configuration)
Applies the configuration changes to this change listener.
|
void |
finalizeTrustManagerProvider()
Performs any finalization that may be necessary for this trust manager provider.
|
TrustManager[] |
getTrustManagers()
Retrieves a set of
TrustManager objects that may be used for interactions requiring access to a trust
manager. |
void |
initializeTrustManagerProvider(Pkcs11TrustManagerProviderCfg configuration)
Initializes this trust manager provider based on the information in the provided configuration entry.
|
boolean |
isConfigurationChangeAcceptable(Pkcs11TrustManagerProviderCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
isConfigurationAcceptable
public void initializeTrustManagerProvider(Pkcs11TrustManagerProviderCfg configuration) throws ConfigException, InitializationException
TrustManagerProvider
initializeTrustManagerProvider
in class TrustManagerProvider<Pkcs11TrustManagerProviderCfg>
configuration
- The configuration to use for this trust manager provider.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 finalizeTrustManagerProvider()
TrustManagerProvider
finalizeTrustManagerProvider
in class TrustManagerProvider<Pkcs11TrustManagerProviderCfg>
public TrustManager[] getTrustManagers() throws LdapException
TrustManagerProvider
TrustManager
objects that may be used for interactions requiring access to a trust
manager.getTrustManagers
in class TrustManagerProvider<Pkcs11TrustManagerProviderCfg>
TrustManager
objects that may be used for interactions requiring access to a trust
manager.LdapException
- If a problem occurs while attempting to obtain the set of trust managers.public boolean isConfigurationChangeAcceptable(Pkcs11TrustManagerProviderCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<Pkcs11TrustManagerProviderCfg>
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.true
if the proposed change is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationChange(Pkcs11TrustManagerProviderCfg configuration)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<Pkcs11TrustManagerProviderCfg>
configuration
- The new configuration containing the changes.Copyright 2010-2022 ForgeRock AS.