Package org.opends.server.extensions
Class PemTrustManagerProvider
java.lang.Object
org.opends.server.api.TrustManagerProvider<PemTrustManagerProviderCfg>
org.opends.server.extensions.PemTrustManagerProvider
- All Implemented Interfaces:
ConfigurationChangeListener<PemTrustManagerProviderCfg>
public final class PemTrustManagerProvider
extends TrustManagerProvider<PemTrustManagerProviderCfg>
implements ConfigurationChangeListener<PemTrustManagerProviderCfg>
A
TrustManagerProvider that reads trusted certificates from PEM files in a configured file system directory
and automatically reacts to file modification, deletion or addition.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a PemTrustManagerProvider with the default clock. -
Method Summary
Modifier and TypeMethodDescriptionapplyConfigurationChange(PemTrustManagerProviderCfg configuration) Applies the configuration changes to this change listener.voidPerforms any finalization that may be necessary for this trust manager provider.Retrieves a set ofTrustManagerobjects that may be used for interactions requiring access to a trust manager.voidinitializeTrustManagerProvider(PemTrustManagerProviderCfg configuration) Initializes this trust manager provider based on the information in the provided configuration entry.booleanisConfigurationAcceptable(PemTrustManagerProviderCfg configuration, List<LocalizableMessage> unacceptableReasons) Indicates whether the provided configuration is acceptable for this trust manager provider.booleanisConfigurationChangeAcceptable(PemTrustManagerProviderCfg configuration, 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, setServerContext
-
Constructor Details
-
PemTrustManagerProvider
public PemTrustManagerProvider()Constructs a PemTrustManagerProvider with the default clock.
-
-
Method Details
-
initializeTrustManagerProvider
public void initializeTrustManagerProvider(PemTrustManagerProviderCfg configuration) throws InitializationException Description copied from class:TrustManagerProviderInitializes this trust manager provider based on the information in the provided configuration entry.- Specified by:
initializeTrustManagerProviderin classTrustManagerProvider<PemTrustManagerProviderCfg>- Parameters:
configuration- The configuration to use for this trust manager provider.- Throws:
InitializationException- If a problem occurs during initialization that is not related to the server configuration.
-
finalizeTrustManagerProvider
public void finalizeTrustManagerProvider()Description copied from class:TrustManagerProviderPerforms any finalization that may be necessary for this trust manager provider.- Specified by:
finalizeTrustManagerProviderin classTrustManagerProvider<PemTrustManagerProviderCfg>
-
getTrustManagers
Description copied from class:TrustManagerProviderRetrieves a set ofTrustManagerobjects that may be used for interactions requiring access to a trust manager.- Specified by:
getTrustManagersin classTrustManagerProvider<PemTrustManagerProviderCfg>- Returns:
- A set of
TrustManagerobjects that may be used for interactions requiring access to a trust manager.
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(PemTrustManagerProviderCfg configuration, 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<PemTrustManagerProviderCfg>- Parameters:
configuration- 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(PemTrustManagerProviderCfg configuration, 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<PemTrustManagerProviderCfg>- Parameters:
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.- Returns:
- Returns
trueif the proposed change is acceptable, orfalseif it is not.
-
applyConfigurationChange
Description copied from interface:ConfigurationChangeListenerApplies the configuration changes to this change listener.- Specified by:
applyConfigurationChangein interfaceConfigurationChangeListener<PemTrustManagerProviderCfg>- Parameters:
configuration- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-