Package org.minidns.dane
Class ExpectingTrustManager
java.lang.Object
org.minidns.dane.ExpectingTrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
-
Constructor Summary
ConstructorsConstructorDescriptionExpectingTrustManager(X509TrustManager trustManager) Creates a new instance of ExpectingTrustManager. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType) boolean
-
Constructor Details
-
ExpectingTrustManager
Creates a new instance of ExpectingTrustManager.- Parameters:
trustManager- TheX509TrustManagerto be used for verification.nullto use the system default.
-
-
Method Details
-
hasException
-
getException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-