Class EasyX509TrustManager
java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.contrib.ssl.EasyX509TrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
EasyX509TrustManager unlike default X509TrustManager
accepts
self-signed certificates.
This trust manager SHOULD NOT be used for productive systems due to security reasons, unless it is a concious decision and you are perfectly aware of security implications of accepting self-signed certificates
-
Constructor Summary
ConstructorDescriptionEasyX509TrustManager
(KeyStore keystore) Constructor for EasyX509TrustManager. -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate[] certificates, String authType) void
checkServerTrusted
(X509Certificate[] certificates, String authType)
-
Constructor Details
-
EasyX509TrustManager
Constructor for EasyX509TrustManager.
-
-
Method Details
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] certificates, String authType) throws CertificateException - Specified by:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
- See Also:
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] certificates, String authType) throws CertificateException - Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
- See Also:
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
- See Also:
-