public class BlindTrustManagerProvider extends TrustManagerProvider<org.forgerock.opendj.server.config.server.BlindTrustManagerProviderCfg> implements X509TrustManager
Constructor and Description |
---|
BlindTrustManagerProvider()
Creates a new instance of this blind trust manager provider.
|
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType)
Determines whether an SSL client with the provided certificate chain should
be trusted.
|
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
Determines whether an SSL server with the provided certificate chain should
be trusted.
|
void |
finalizeTrustManagerProvider()
Performs any finalization that may be necessary for this trust
manager provider.
|
X509Certificate[] |
getAcceptedIssuers()
Retrieves the set of certificate authority certificates which are trusted
for authenticating peers.
|
TrustManager[] |
getTrustManagers()
Retrieves a set of
TrustManager objects that may be used
for interactions requiring access to a trust manager. |
void |
initializeTrustManagerProvider(org.forgerock.opendj.server.config.server.BlindTrustManagerProviderCfg configuration)
Initializes this trust manager provider based on the information
in the provided configuration entry.
|
isConfigurationAcceptable
public BlindTrustManagerProvider()
initializeTrustManagerProvider
method must be called on the
resulting object before it may be used.public void initializeTrustManagerProvider(org.forgerock.opendj.server.config.server.BlindTrustManagerProviderCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
TrustManagerProvider
initializeTrustManagerProvider
in class TrustManagerProvider<org.forgerock.opendj.server.config.server.BlindTrustManagerProviderCfg>
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.BlindTrustManagerProviderCfg>
public TrustManager[] getTrustManagers() throws DirectoryException
TrustManagerProvider
TrustManager
objects that may be used
for interactions requiring access to a trust manager.getTrustManagers
in class TrustManagerProvider<org.forgerock.opendj.server.config.server.BlindTrustManagerProviderCfg>
TrustManager
objects that may be used
for interactions requiring access to a trust manager.DirectoryException
- If a problem occurs while attempting
to obtain the set of trust managers.public void checkClientTrusted(X509Certificate[] chain, String authType)
checkClientTrusted
in interface X509TrustManager
chain
- The certificate chain for the SSL client.authType
- The authentication type based on the client certificate.public void checkServerTrusted(X509Certificate[] chain, String authType)
checkServerTrusted
in interface X509TrustManager
chain
- The certificate chain for the SSL server.authType
- The key exchange algorithm used.public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.