Package org.apache.beam.sdk.io.splunk
Class CustomX509TrustManager
java.lang.Object
org.apache.beam.sdk.io.splunk.CustomX509TrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
A Custom X509TrustManager that trusts a user provided CA and default CA's.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType)
-
Constructor Details
-
CustomX509TrustManager
public CustomX509TrustManager(X509Certificate userCertificate) throws CertificateException, KeyStoreException, NoSuchAlgorithmException, IOException
-
-
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
-