Package org.jppf.ssl
Class CompositeX509TrustManager
java.lang.Object
org.jppf.ssl.CompositeX509TrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
Instances of this class allow an SSLSocketFactory or an SSLEngine to perform checks against multiple trust managers from multiple trusstores.
- Since:
- 6.0
- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeX509TrustManager(List<X509TrustManager> trustManagers) Creates a newCompositeX509TrustManager. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType)
-
Constructor Details
-
CompositeX509TrustManager
Creates a newCompositeX509TrustManager.- Parameters:
trustManagers- the X509 trust managers, ordered with the most-preferred managers first.
-
-
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
-