eu.emi.security.authn.x509.helpers
Class SSLTrustManager
java.lang.Object
eu.emi.security.authn.x509.helpers.SSLTrustManager
- All Implemented Interfaces:
- TrustManager, X509TrustManager
public class SSLTrustManager
- extends Object
- implements X509TrustManager
Implementation of TrustManager
which uses a configured X509CertChainValidator
to validate certificates.
- Author:
- K. Benedyczak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
validator
protected X509CertChainValidator validator
SSLTrustManager
public SSLTrustManager(X509CertChainValidator validator)
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain,
String authType)
throws CertificateException
-
- Specified by:
checkClientTrusted
in interface X509TrustManager
- Throws:
CertificateException
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain,
String authType)
throws CertificateException
-
- Specified by:
checkServerTrusted
in interface X509TrustManager
- Throws:
CertificateException
checkIfTrusted
protected void checkIfTrusted(X509Certificate[] certChain)
throws CertificateException
- Throws:
CertificateException
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
-
- Specified by:
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2012 European Middleware Initiative. All Rights Reserved.