Package org.minidns.dane
Class ExpectingTrustManager
- java.lang.Object
- 
- org.minidns.dane.ExpectingTrustManager
 
- 
- All Implemented Interfaces:
- TrustManager,- X509TrustManager
 
 public class ExpectingTrustManager extends Object implements X509TrustManager 
- 
- 
Constructor SummaryConstructors Constructor Description ExpectingTrustManager(X509TrustManager trustManager)Creates a new instance of ExpectingTrustManager.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] chain, String authType)voidcheckServerTrusted(X509Certificate[] chain, String authType)X509Certificate[]getAcceptedIssuers()CertificateExceptiongetException()booleanhasException()
 
- 
- 
- 
Constructor Detail- 
ExpectingTrustManagerpublic ExpectingTrustManager(X509TrustManager trustManager) Creates a new instance of ExpectingTrustManager.- Parameters:
- trustManager- The- X509TrustManagerto be used for verification.- nullto use the system default.
 
 
- 
 - 
Method Detail- 
hasExceptionpublic boolean hasException() 
 - 
getExceptionpublic CertificateException getException() 
 - 
checkClientTrustedpublic void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
- checkClientTrustedin interface- X509TrustManager
- Throws:
- CertificateException
 
 - 
checkServerTrustedpublic void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
- checkServerTrustedin interface- X509TrustManager
- Throws:
- CertificateException
 
 - 
getAcceptedIssuerspublic X509Certificate[] getAcceptedIssuers() - Specified by:
- getAcceptedIssuersin interface- X509TrustManager
 
 
- 
 
-