public class LDAPTrustManagerProvider extends TrustManagerProvider<LdapTrustManagerProviderCfg> implements ConfigurationChangeListener<LdapTrustManagerProviderCfg>
Constructor and Description |
---|
LDAPTrustManagerProvider()
Creates a new LDAP trust manager provider.
|
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationChange(LdapTrustManagerProviderCfg cfg)
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(LdapTrustManagerProviderCfg cfg)
Initializes this trust manager provider based on the information in the provided configuration entry.
|
boolean |
isConfigurationAcceptable(LdapTrustManagerProviderCfg cfg,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this trust manager provider.
|
boolean |
isConfigurationChangeAcceptable(LdapTrustManagerProviderCfg cfg,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
public LDAPTrustManagerProvider()
public void initializeTrustManagerProvider(LdapTrustManagerProviderCfg cfg)
TrustManagerProvider
initializeTrustManagerProvider
in class TrustManagerProvider<LdapTrustManagerProviderCfg>
cfg
- The configuration to use for this trust manager provider.public void finalizeTrustManagerProvider()
TrustManagerProvider
finalizeTrustManagerProvider
in class TrustManagerProvider<LdapTrustManagerProviderCfg>
public TrustManager[] getTrustManagers() throws LdapException
TrustManagerProvider
TrustManager
objects that may be used for interactions requiring access to a trust
manager.getTrustManagers
in class TrustManagerProvider<LdapTrustManagerProviderCfg>
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 isConfigurationAcceptable(LdapTrustManagerProviderCfg cfg, List<LocalizableMessage> unacceptableReasons)
TrustManagerProvider
isConfigurationAcceptable
in class TrustManagerProvider<LdapTrustManagerProviderCfg>
cfg
- The trust 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 trust manager provider, or
false
if not.public boolean isConfigurationChangeAcceptable(LdapTrustManagerProviderCfg cfg, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<LdapTrustManagerProviderCfg>
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.true
if the proposed change is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationChange(LdapTrustManagerProviderCfg cfg)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<LdapTrustManagerProviderCfg>
cfg
- The new configuration containing the changes.Copyright 2010-2022 ForgeRock AS.