public class ClientTrustManager extends Object implements X509TrustManager
Constructor and Description |
---|
ClientTrustManager(KeyStore trustTrust) |
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() |
public ClientTrustManager(KeyStore trustTrust)
public void checkClientTrusted(X509Certificate[] x509Certificates, String string) throws CertificateException
checkClientTrusted
in interface X509TrustManager
CertificateException
public 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 X509TrustManager
x509Certificates
- 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 X509TrustManager
Copyright © 2003–2019 Ignite Realtime. All rights reserved.