Package org.opends.server.extensions
Class AdminDataTrustManagerProvider
- java.lang.Object
-
- org.opends.server.api.TrustManagerProvider<AdminDataTrustManagerProviderCfg>
-
- org.opends.server.extensions.AdminDataTrustManagerProvider
-
- All Implemented Interfaces:
ConfigurationChangeListener<AdminDataTrustManagerProviderCfg>
public final class AdminDataTrustManagerProvider extends TrustManagerProvider<AdminDataTrustManagerProviderCfg> implements ConfigurationChangeListener<AdminDataTrustManagerProviderCfg>
This class defines a trust manager provider that will reference certificates stored in an LDAP backend.
-
-
Constructor Summary
Constructors Constructor Description AdminDataTrustManagerProvider()Creates a new LDAP trust manager provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigChangeResultapplyConfigurationChange(AdminDataTrustManagerProviderCfg cfg)Applies the configuration changes to this change listener.voidfinalizeTrustManagerProvider()Performs any finalization that may be necessary for this trust manager provider.TrustManager[]getTrustManagers()Retrieves a set ofTrustManagerobjects that may be used for interactions requiring access to a trust manager.voidinitializeTrustManagerProvider(AdminDataTrustManagerProviderCfg cfg)Initializes this trust manager provider based on the information in the provided configuration entry.booleanisConfigurationAcceptable(AdminDataTrustManagerProviderCfg cfg, List<LocalizableMessage> unacceptableReasons)Indicates whether the provided configuration is acceptable for this trust manager provider.booleanisConfigurationChangeAcceptable(AdminDataTrustManagerProviderCfg 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.TrustManagerProvider
getServerContext, initializeTrustManagerProvider
-
-
-
-
Method Detail
-
getTrustManagers
public TrustManager[] getTrustManagers() throws LdapException
Description copied from class:TrustManagerProviderRetrieves a set ofTrustManagerobjects that may be used for interactions requiring access to a trust manager.- Specified by:
getTrustManagersin classTrustManagerProvider<AdminDataTrustManagerProviderCfg>- Returns:
- A set of
TrustManagerobjects that may be used for interactions requiring access to a trust manager. - Throws:
LdapException- If a problem occurs while attempting to obtain the set of trust managers.
-
initializeTrustManagerProvider
public void initializeTrustManagerProvider(AdminDataTrustManagerProviderCfg cfg)
Description copied from class:TrustManagerProviderInitializes this trust manager provider based on the information in the provided configuration entry.- Specified by:
initializeTrustManagerProviderin classTrustManagerProvider<AdminDataTrustManagerProviderCfg>- Parameters:
cfg- The configuration to use for this trust manager provider.
-
finalizeTrustManagerProvider
public void finalizeTrustManagerProvider()
Description copied from class:TrustManagerProviderPerforms any finalization that may be necessary for this trust manager provider.- Specified by:
finalizeTrustManagerProviderin classTrustManagerProvider<AdminDataTrustManagerProviderCfg>
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(AdminDataTrustManagerProviderCfg cfg, List<LocalizableMessage> unacceptableReasons)
Description copied from class:TrustManagerProviderIndicates whether the provided configuration is acceptable for this trust manager provider. It should be possible to call this method on an uninitialized trust manager provider instance in order to determine whether the trust manager provider would be able to use the provided configuration.- Overrides:
isConfigurationAcceptablein classTrustManagerProvider<AdminDataTrustManagerProviderCfg>- Parameters:
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.- Returns:
trueif the provided configuration is acceptable for this trust manager provider, orfalseif not.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(AdminDataTrustManagerProviderCfg 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<AdminDataTrustManagerProviderCfg>- 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
public ConfigChangeResult applyConfigurationChange(AdminDataTrustManagerProviderCfg cfg)
Description copied from interface:ConfigurationChangeListenerApplies the configuration changes to this change listener.- Specified by:
applyConfigurationChangein interfaceConfigurationChangeListener<AdminDataTrustManagerProviderCfg>- Parameters:
cfg- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-
-