Package org.opends.server.api
Class TrustManagerProvider<T extends TrustManagerProviderCfg>
java.lang.Object
org.opends.server.api.TrustManagerProvider<T>
- Type Parameters:
- T- The type of trust manager provider configuration handled by this trust manager provider implementation.
- Direct Known Subclasses:
- AdminDataTrustManagerProvider,- BlindTrustManagerProvider,- FileBasedTrustManagerProvider,- JvmTrustManagerProvider,- LDAPTrustManagerProvider,- PemTrustManagerProvider,- Pkcs11TrustManagerProvider
This class defines an API that may be used to obtain a set of 
javax.net.ssl.TrustManager objects for use when
 performing SSL/StartTLS negotiation.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidPerforms any finalization that may be necessary for this trust manager provider.protected final ServerContextReturns the server context.abstract TrustManager[]Retrieves a set ofTrustManagerobjects that may be used for interactions requiring access to a trust manager.abstract voidinitializeTrustManagerProvider(T configuration) Initializes this trust manager provider based on the information in the provided configuration entry.booleanisConfigurationAcceptable(T configuration, List<LocalizableMessage> unacceptableReasons) Indicates whether the provided configuration is acceptable for this trust manager provider.voidsetServerContext(ServerContext serverContext) Sets the server context.
- 
Constructor Details- 
TrustManagerProviderpublic TrustManagerProvider()
 
- 
- 
Method Details- 
initializeTrustManagerProviderpublic abstract void initializeTrustManagerProvider(T configuration) throws ConfigException, InitializationException Initializes this trust manager provider based on the information in the provided configuration entry.- Parameters:
- configuration- The configuration to use for this trust manager provider.
- Throws:
- 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.
 
- 
isConfigurationAcceptablepublic boolean isConfigurationAcceptable(T configuration, List<LocalizableMessage> unacceptableReasons) Indicates 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.- 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, or- falseif not.
 
- 
finalizeTrustManagerProviderpublic abstract void finalizeTrustManagerProvider()Performs any finalization that may be necessary for this trust manager provider.
- 
getTrustManagersRetrieves a set ofTrustManagerobjects that may be used for interactions requiring access to a trust manager.- 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.
 
- 
getServerContextReturns the server context.- Returns:
- the server context.
 
- 
setServerContextSets the server context.- Parameters:
- serverContext- the server context
 
 
-