public class CompositeX509TrustManager extends Object implements X509TrustManager
SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], java.security.SecureRandom):
Only the first instance of a particular key and/or trust manager implementation type in the
array is used. (For example, only the first javax.net.ssl.X509KeyManager in the array will be used.)| Constructor and Description |
|---|
CompositeX509TrustManager(List<X509TrustManager> trustManagers) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
public CompositeX509TrustManager(List<X509TrustManager> trustManagers)
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted in interface X509TrustManagerCertificateExceptionpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManager