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 java.lang.Object
implements com.sun.net.ssl.X509TrustManager

jakarta code for SSL that doesnt fail with self-signed certs

Author:
mchyzer

Constructor Summary
EasySslSocketFactory.EasyX509TrustManager(java.security.KeyStore keystore)
          Constructor for EasyX509TrustManager.
 
Method Summary
 java.security.cert.X509Certificate[] getAcceptedIssuers()
           
 boolean isClientTrusted(java.security.cert.X509Certificate[] certificates)
           
 boolean isServerTrusted(java.security.cert.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(java.security.KeyStore keystore)
                                          throws java.security.NoSuchAlgorithmException,
                                                 java.security.KeyStoreException
Constructor for EasyX509TrustManager.

Parameters:
keystore - KeyStore
Throws:
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
Method Detail

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