public class JvmTrustManagerProvider extends TrustManagerProvider<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(TrustManagerProviderCfg configuration)
Initializes this trust manager provider based on the information in the provided configuration entry.
|
isConfigurationAcceptable
public void initializeTrustManagerProvider(TrustManagerProviderCfg configuration) throws ConfigException, InitializationException
TrustManagerProvider
initializeTrustManagerProvider
in class TrustManagerProvider<TrustManagerProviderCfg>
configuration
- The configuration to use for this trust manager provider.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<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<TrustManagerProviderCfg>
null
to allow client code to use the JVM truststore.DirectoryException
- This exception will never be thrown by this implementationCopyright 2010-2020 ForgeRock AS.