Module nl.altindag.ssl
Package nl.altindag.ssl.trustmanager
Class AggregatedX509ExtendedTrustManager
java.lang.Object
javax.net.ssl.X509ExtendedTrustManager
nl.altindag.ssl.trustmanager.AggregatedX509ExtendedTrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager,CombinableX509TrustManager
public final class AggregatedX509ExtendedTrustManager
extends X509ExtendedTrustManager
implements CombinableX509TrustManager
AggregatedX509ExtendedTrustManager is a wrapper for a collection of TrustManagers.
It has the ability to validate a certificate chain against multiple TrustManagers.
If any one of the inner trust managers trusts a certificate chain, then it is trusted by the wrapper trust manager.
The TrustManager can be built from one or more of any combination provided within the TrustManagerUtils.TrustManagerBuilder.
This includes:
- Any amount of custom TrustManagers
- Any amount of custom TrustStores
NOTE:
Please don't use this class directly as it is part of the internal API. Class name and methods can be changed any time.
Instead use the TrustManagerUtils which provides the same functionality
while it has a stable API because it is part of the public API.
- See Also:
-
Field Summary
FieldsFields inherited from interface nl.altindag.ssl.trustmanager.CombinableX509TrustManager
CERTIFICATE_EXCEPTION_MESSAGE -
Constructor Summary
ConstructorsConstructorDescriptionAggregatedX509ExtendedTrustManager(List<? extends X509ExtendedTrustManager> trustManagers) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckClientTrusted(X509Certificate[] chain, String authType, Socket socket) voidcheckClientTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine) voidcheckServerTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType, Socket socket) voidcheckServerTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.altindag.ssl.trustmanager.CombinableX509TrustManager
checkTrusted
-
Field Details
-
trustManagers
-
-
Constructor Details
-
AggregatedX509ExtendedTrustManager
-
-
Method Details
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException - Specified by:
checkClientTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine) throws CertificateException - Specified by:
checkClientTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException - Specified by:
checkServerTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine) throws CertificateException - Specified by:
checkServerTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
getInnerTrustManagers
- Specified by:
getInnerTrustManagersin interfaceCombinableX509TrustManager
-