Class EasyX509TrustManager
- java.lang.Object
-
- org.sakaiproject.entitybroker.util.http.EasyX509TrustManager
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
public class EasyX509TrustManager extends Object implements X509TrustManager
EasyX509TrustManager unlike default
X509TrustManageraccepts 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
- Author:
- Adrian Sutton, Oleg Kalnichevski
DISCLAIMER: HttpClient developers DO NOT actively support this component. The component is provided as a reference material, which may be inappropriate for use without additional customization.
-
-
Constructor Summary
Constructors Constructor Description EasyX509TrustManager(KeyStore keystore)Constructor for EasyX509TrustManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] certificates, String authType)see javax.net.ssl.X509TrustManager#checkClientTrusted(X509Certificate[],String authType)voidcheckServerTrusted(X509Certificate[] certificates, String authType)see javax.net.ssl.X509TrustManager#checkServerTrusted(X509Certificate[],String authType)X509Certificate[]getAcceptedIssuers()
-
-
-
Constructor Detail
-
EasyX509TrustManager
public EasyX509TrustManager(KeyStore keystore) throws NoSuchAlgorithmException, KeyStoreException
Constructor for EasyX509TrustManager.
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] certificates, String authType) throws CertificateException
see javax.net.ssl.X509TrustManager#checkClientTrusted(X509Certificate[],String authType)- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] certificates, String authType) throws CertificateException
see javax.net.ssl.X509TrustManager#checkServerTrusted(X509Certificate[],String authType)- Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager- See Also:
X509TrustManager.getAcceptedIssuers()
-
-