public class BlindTrustManagerProvider extends TrustManagerProvider<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(BlindTrustManagerProviderCfg configuration)
Initializes this trust manager provider based on the information
in the provided configuration entry.
|
isConfigurationAcceptablepublic BlindTrustManagerProvider()
initializeTrustManagerProvider method must be called on the
resulting object before it may be used.public void initializeTrustManagerProvider(BlindTrustManagerProviderCfg configuration) throws ConfigException, InitializationException
initializeTrustManagerProvider in class TrustManagerProvider<BlindTrustManagerProviderCfg>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()
finalizeTrustManagerProvider in class TrustManagerProvider<BlindTrustManagerProviderCfg>public TrustManager[] getTrustManagers() throws DirectoryException
TrustManager objects that may be used
for interactions requiring access to a trust manager.getTrustManagers in class TrustManagerProvider<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 X509TrustManagerchain - 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 X509TrustManagerchain - The certificate chain for the SSL server.authType - The key exchange algorithm used.public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.