public class X509TrustManagerWrapper extends Object implements X509TrustManager
X509TrustManager interface wrapper to re-throw
RuntimeException as CertificateException when using empty
truststore.| Constructor and Description |
|---|
X509TrustManagerWrapper(X509TrustManager trustManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
static TrustManager[] |
wrap(TrustManager[] trustManagers) |
public X509TrustManagerWrapper(X509TrustManager trustManager)
public static TrustManager[] wrap(TrustManager[] 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 X509TrustManagerCopyright © 2021. All rights reserved.