Package com.opencloud.slee.remote
Class CompositeX509TrustManager
- java.lang.Object
-
- com.opencloud.slee.remote.CompositeX509TrustManager
-
- All Implemented Interfaces:
TrustManager
,X509TrustManager
public class CompositeX509TrustManager extends Object implements X509TrustManager
Wrap multiple trust managers to allow more than one truststore to be used. The first manager passed to the constructor will be preferred. SeeSSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], java.security.SecureRandom)
: Only the first instance of a particular key and/or trust manager implementation type in the array is used. (For example, only the first javax.net.ssl.X509KeyManager in the array will be used.)
-
-
Constructor Summary
Constructors Constructor Description CompositeX509TrustManager(List<X509TrustManager> trustManagers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkClientTrusted(X509Certificate[] chain, String authType)
void
checkServerTrusted(X509Certificate[] chain, String authType)
X509Certificate[]
getAcceptedIssuers()
-
-
-
Constructor Detail
-
CompositeX509TrustManager
public CompositeX509TrustManager(List<X509TrustManager> trustManagers)
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
-
-