public class ServerTrustManager extends Object implements X509TrustManager
| Constructor and Description |
|---|
ServerTrustManager(KeyStore trustTrust) |
ServerTrustManager(String server,
KeyStore trustStore,
Connection connection)
Deprecated.
Use ServerTrustManager(KeyStore trustStore) instead (there's no functional difference).
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String string) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String string)
Given the partial or complete certificate chain provided by the peer, build a certificate
path to a trusted root and return if it can be validated and is trusted for server SSL
authentication based on the authentication type.
|
X509Certificate[] |
getAcceptedIssuers() |
@Deprecated public ServerTrustManager(String server, KeyStore trustStore, Connection connection)
public ServerTrustManager(KeyStore trustTrust)
public void checkClientTrusted(X509Certificate[] x509Certificates, String string)
checkClientTrusted in interface X509TrustManagerpublic void checkServerTrusted(X509Certificate[] x509Certificates, String string) throws CertificateException
By default certificates are going to be verified. This includes verifying the certificate chain, the root certificate and the certificates validity. However, it is possible to disable certificates validation as a whole or each specific validation.
checkServerTrusted in interface X509TrustManagerx509Certificates - an ordered array of peer X.509 certificates with the peer's own
certificate listed first and followed by any certificate authorities.string - the key exchange algorithm used.CertificateException - if the certificate chain is not trusted by this TrustManager.public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerCopyright © 2003-2008 Jive Software.