edu.internet2.middleware.grouperClient.ssl
Class EasySslSocketFactory.EasyX509TrustManager

java.lang.Object
  extended by 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

Constructor Summary
EasySslSocketFactory.EasyX509TrustManager(KeyStore keystore)
          Constructor for EasyX509TrustManager.
 
Method Summary
 X509Certificate[] getAcceptedIssuers()
           
 boolean isClientTrusted(X509Certificate[] certificates)
           
 boolean isServerTrusted(X509Certificate[] certificates)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasySslSocketFactory.EasyX509TrustManager

public EasySslSocketFactory.EasyX509TrustManager(KeyStore keystore)
                                          throws NoSuchAlgorithmException,
                                                 KeyStoreException
Constructor for EasyX509TrustManager.

Parameters:
keystore - KeyStore
Throws:
NoSuchAlgorithmException
KeyStoreException
Method Detail

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()