org.opends.server.extensions
Class NullTrustManagerProvider

java.lang.Object
  extended by org.opends.server.api.TrustManagerProvider<TrustManagerProviderCfg>
      extended by org.opends.server.extensions.NullTrustManagerProvider

public class NullTrustManagerProvider
extends TrustManagerProvider<TrustManagerProviderCfg>

This class provides an implementation of a trust manager provider that does not actually have the ability to provide a trust manager. It will be used when no other trust manager provider has been defined in the server configuration.


Constructor Summary
NullTrustManagerProvider()
          Creates a new instance of this null trust manager provider.
 
Method Summary
 void finalizeTrustManagerProvider()
          Performs any finalization that may be necessary for this trust manager provider.
 javax.net.ssl.TrustManager[] getTrustManagers()
          Retrieves a TrustManager object that may be used for interactions requiring access to a trust manager.
 void initializeTrustManagerProvider(TrustManagerProviderCfg configuration)
          Initializes this trust manager provider based on the information in the provided configuration entry.
 
Methods inherited from class org.opends.server.api.TrustManagerProvider
isConfigurationAcceptable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullTrustManagerProvider

public NullTrustManagerProvider()
Creates a new instance of this null trust manager provider. The initializeTrustManagerProvider method must be called on the resulting object before it may be used.

Method Detail

initializeTrustManagerProvider

public void initializeTrustManagerProvider(TrustManagerProviderCfg configuration)
                                    throws ConfigException,
                                           InitializationException
Initializes this trust manager provider based on the information in the provided configuration entry.

Specified by:
initializeTrustManagerProvider in class TrustManagerProvider<TrustManagerProviderCfg>
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.

finalizeTrustManagerProvider

public void finalizeTrustManagerProvider()
Performs any finalization that may be necessary for this trust manager provider.

Specified by:
finalizeTrustManagerProvider in class TrustManagerProvider<TrustManagerProviderCfg>

getTrustManagers

public javax.net.ssl.TrustManager[] getTrustManagers()
                                              throws DirectoryException
Retrieves a TrustManager object that may be used for interactions requiring access to a trust manager.

Specified by:
getTrustManagers in class TrustManagerProvider<TrustManagerProviderCfg>
Returns:
A TrustManager object that may be used for interactions requiring access to a trust manager.
Throws:
DirectoryException - If a problem occurs while attempting to obtain the set of trust managers.