public class ExpectingTrustManager extends Object implements X509TrustManager
Constructor and Description |
---|
ExpectingTrustManager(X509TrustManager trustManager)
Creates a new instance of ExpectingTrustManager.
|
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
CertificateException |
getException() |
boolean |
hasException() |
public ExpectingTrustManager(X509TrustManager trustManager)
trustManager
- The X509TrustManager
to be used for verification.
null
to use the system default.public boolean hasException()
public CertificateException getException()
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