|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.api.TrustManagerProvider<BlindTrustManagerProviderCfg>
org.opends.server.extensions.BlindTrustManagerProvider
public class BlindTrustManagerProvider
This class provides an implementation of a trust manager provider that will indicate that any certificate presented should be blindly trusted by the Directory Server. This can provide convenience and ease of use, but that added convenience will be at the expense of security and therefore it should not be used in environments in which the clients may not be considered trustworthy.
Constructor Summary | |
---|---|
BlindTrustManagerProvider()
Creates a new instance of this blind trust manager provider. |
Method Summary | |
---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
Determines whether an SSL client with the provided certificate chain should be trusted. |
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.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. |
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
Retrieves the set of certificate authority certificates which are trusted for authenticating peers. |
javax.net.ssl.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. |
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 |
---|
public BlindTrustManagerProvider()
initializeTrustManagerProvider
method must be called on the
resulting object before it may be used.
Method Detail |
---|
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 javax.net.ssl.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(java.security.cert.X509Certificate[] chain, java.lang.String authType)
checkClientTrusted
in interface javax.net.ssl.X509TrustManager
chain
- The certificate chain for the SSL client.authType
- The authentication type based on the client certificate.public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
checkServerTrusted
in interface javax.net.ssl.X509TrustManager
chain
- The certificate chain for the SSL server.authType
- The key exchange algorithm used.public java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface javax.net.ssl.X509TrustManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |