Package org.graylog2.security
Class CustomCAX509TrustManager
java.lang.Object
org.graylog2.security.CustomCAX509TrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
-
Constructor Summary
ConstructorsConstructorDescriptionCustomCAX509TrustManager(CaTruststore caTruststore, com.google.common.eventbus.EventBus serverEventBus) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType) voidvoidrefresh()
-
Constructor Details
-
CustomCAX509TrustManager
@Inject public CustomCAX509TrustManager(CaTruststore caTruststore, com.google.common.eventbus.EventBus serverEventBus)
-
-
Method Details
-
handleCertificateAuthorityChange
-
refresh
public void refresh() -
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
-