JSSEX509TrustManager instead; the JSSE has been integrated
into the J2SE as of J2SE version 1.4public class JSSEX509TrustManagerExtension
extends java.lang.Object
implements com.sun.net.ssl.X509TrustManager
JSSEX509TrustManagerExtension class implements the
com.sun.net.ssl.X509TrustManager interface.
The com.sun.net.ssl.X509TrustManager interface is used
to initialize an SSLContext object to support X.509 authentication
to remote socket peers through JSSE. You can create an instance
of this class directly either by using the constructor or by using a
TrustManagerFactory engine.
For more information, see the SUN Microsystems API user's guide for the Java Secure Socket Extension (JSSE) version 1.0.2
JSSEX509TrustManagerFactoryExtension,
SSLContext| Constructor and Description |
|---|
JSSEX509TrustManagerExtension(java.security.cert.X509Certificate[] trustedRoots)
Deprecated.
Creates an instance of the
JSSEX509TrustManager
class. |
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
Deprecated.
Retrieves the trusted root CA certificates.
|
boolean |
isClientTrusted(java.security.cert.X509Certificate[] chain)
Deprecated.
Validates the given certificate chain from a client.
|
boolean |
isServerTrusted(java.security.cert.X509Certificate[] chain)
Deprecated.
Validates the given certificate chain from a server.
|
public JSSEX509TrustManagerExtension(java.security.cert.X509Certificate[] trustedRoots)
JSSEX509TrustManager
class.
trustedRoots - the trusted root CA certificatespublic java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface com.sun.net.ssl.X509TrustManagerpublic boolean isClientTrusted(java.security.cert.X509Certificate[] chain)
This method is called by a server.
isClientTrusted in interface com.sun.net.ssl.X509TrustManagerchain - the certificate chain to be validatedtrue if the chain is trusted,
false otherwise.public boolean isServerTrusted(java.security.cert.X509Certificate[] chain)
This method is called by a client.
isServerTrusted in interface com.sun.net.ssl.X509TrustManagerchain - the certificate chain to be validatedtrue if the chain is trusted,
false otherwise.