Package org.graylog2.security.untrusted
Class CertificateChainReportingTrustManager
java.lang.Object
org.graylog2.security.untrusted.CertificateChainReportingTrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
This trust manager is making the certificate chain easily accessible in the CertificateReportingException if the
delegate trust manager throws an certificate exception. The caller can then see which certificates have been
used and validated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType)
-
Constructor Details
-
CertificateChainReportingTrustManager
-
-
Method Details
-
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
-