edu.internet2.middleware.grouperClient.ssl
Class EasySslSocketFactory.EasyX509TrustManager
java.lang.Object
edu.internet2.middleware.grouperClient.ssl.EasySslSocketFactory.EasyX509TrustManager
- All Implemented Interfaces:
- com.sun.net.ssl.TrustManager, com.sun.net.ssl.X509TrustManager
- Enclosing class:
- EasySslSocketFactory
public static class EasySslSocketFactory.EasyX509TrustManager
- extends Object
- implements com.sun.net.ssl.X509TrustManager
jakarta code for SSL that doesnt fail with self-signed certs
- Author:
- mchyzer
EasySslSocketFactory.EasyX509TrustManager
public EasySslSocketFactory.EasyX509TrustManager(KeyStore keystore)
throws NoSuchAlgorithmException,
KeyStoreException
- Constructor for EasyX509TrustManager.
- Parameters:
keystore
- KeyStore
- Throws:
NoSuchAlgorithmException
KeyStoreException
isClientTrusted
public boolean isClientTrusted(X509Certificate[] certificates)
- Specified by:
isClientTrusted
in interface com.sun.net.ssl.X509TrustManager
- See Also:
X509TrustManager.isClientTrusted(X509Certificate[])
isServerTrusted
public boolean isServerTrusted(X509Certificate[] certificates)
- Specified by:
isServerTrusted
in interface com.sun.net.ssl.X509TrustManager
- See Also:
X509TrustManager.isServerTrusted(X509Certificate[])
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interface com.sun.net.ssl.X509TrustManager
- See Also:
X509TrustManager.getAcceptedIssuers()