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 java.lang.Object
- implements com.sun.net.ssl.X509TrustManager
jakarta code for SSL that doesnt fail with self-signed certs
- Author:
- mchyzer
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EasySslSocketFactory.EasyX509TrustManager
public EasySslSocketFactory.EasyX509TrustManager(java.security.KeyStore keystore)
throws java.security.NoSuchAlgorithmException,
java.security.KeyStoreException
- Constructor for EasyX509TrustManager.
- Parameters:
keystore
- KeyStore
- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
isClientTrusted
public boolean isClientTrusted(java.security.cert.X509Certificate[] certificates)
- Specified by:
isClientTrusted
in interface com.sun.net.ssl.X509TrustManager
- See Also:
X509TrustManager.isClientTrusted(X509Certificate[])
isServerTrusted
public boolean isServerTrusted(java.security.cert.X509Certificate[] certificates)
- Specified by:
isServerTrusted
in interface com.sun.net.ssl.X509TrustManager
- See Also:
X509TrustManager.isServerTrusted(X509Certificate[])
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interface com.sun.net.ssl.X509TrustManager
- See Also:
X509TrustManager.getAcceptedIssuers()