public class JvmTrustManagerProvider extends TrustManagerProvider<org.forgerock.opendj.server.config.server.TrustManagerProviderCfg>
TrustManagerProvider
which use the JVM truststore.Constructor and Description |
---|
JvmTrustManagerProvider() |
Modifier and Type | Method and Description |
---|---|
void |
finalizeTrustManagerProvider()
Performs any finalization that may be necessary for this trust
manager provider.
|
TrustManager[] |
getTrustManagers()
This method returns
null to allow client code to use the JVM truststore. |
void |
initializeTrustManagerProvider(org.forgerock.opendj.server.config.server.TrustManagerProviderCfg configuration)
Initializes this trust manager provider based on the information
in the provided configuration entry.
|
isConfigurationAcceptable
public JvmTrustManagerProvider()
public void initializeTrustManagerProvider(org.forgerock.opendj.server.config.server.TrustManagerProviderCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
TrustManagerProvider
initializeTrustManagerProvider
in class TrustManagerProvider<org.forgerock.opendj.server.config.server.TrustManagerProviderCfg>
configuration
- The configuration to use for this trust
manager provider.org.forgerock.opendj.config.server.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.public void finalizeTrustManagerProvider()
TrustManagerProvider
finalizeTrustManagerProvider
in class TrustManagerProvider<org.forgerock.opendj.server.config.server.TrustManagerProviderCfg>
public TrustManager[] getTrustManagers() throws DirectoryException
null
to allow client code to use the JVM truststore.
The TrustManager
array returned by this method is meant to be used as the second parameter of
SSLContext.init(KeyManager[], TrustManager[], SecureRandom)
method.
getTrustManagers
in class TrustManagerProvider<org.forgerock.opendj.server.config.server.TrustManagerProviderCfg>
null
to allow client code to use the JVM truststore.DirectoryException
- This exception will never be thrown by this implementationCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.