public class Java14TrustManagerWrapper extends Object implements X509TrustManager
Modifier and Type | Field and Description |
---|---|
private SSL |
ssl |
private TrustChain |
trustChain |
private X509TrustManager |
trustManager |
Constructor and Description |
---|
Java14TrustManagerWrapper(X509TrustManager m,
TrustChain tc,
SSL h) |
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
private static Throwable |
getRootThrowable(Throwable t) |
private void |
testShouldWeThrow(CertificateException checkException,
X509Certificate[] chain) |
private final X509TrustManager trustManager
private final TrustChain trustChain
public Java14TrustManagerWrapper(X509TrustManager m, TrustChain tc, SSL h)
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted
in interface X509TrustManager
CertificateException
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted
in interface X509TrustManager
CertificateException
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
private void testShouldWeThrow(CertificateException checkException, X509Certificate[] chain) throws CertificateException
CertificateException
private static Throwable getRootThrowable(Throwable t)