net.sf.jameleon.util
Class X509TrustEverythingManager

java.lang.Object
  extended by net.sf.jameleon.util.X509TrustEverythingManager
All Implemented Interfaces:
TrustManager, X509TrustManager

public class X509TrustEverythingManager
extends Object
implements X509TrustManager

A X509TrustManager that trusts everything. This is used for those sites where the SSL is known to be invalid.


Constructor Summary
X509TrustEverythingManager()
          Constructor for EasyX509TrustManager.
X509TrustEverythingManager(KeyStore keystore)
          Constructor for EasyX509TrustManager.
 
Method Summary
 void checkClientTrusted(X509Certificate[] certs, String authType)
           
 void checkServerTrusted(X509Certificate[] certs, String authType)
           
 X509Certificate[] getAcceptedIssuers()
           
 boolean isClientTrusted(X509Certificate[] chain)
           
 boolean isServerTrusted(X509Certificate[] chain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509TrustEverythingManager

public X509TrustEverythingManager()
Constructor for EasyX509TrustManager.


X509TrustEverythingManager

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

Throws:
NoSuchAlgorithmException
KeyStoreException
Method Detail

isClientTrusted

public boolean isClientTrusted(X509Certificate[] chain)

isServerTrusted

public boolean isServerTrusted(X509Certificate[] chain)

getAcceptedIssuers

public X509Certificate[] getAcceptedIssuers()
Specified by:
getAcceptedIssuers in interface X509TrustManager

checkServerTrusted

public void checkServerTrusted(X509Certificate[] certs,
                               String authType)
                        throws CertificateException
Specified by:
checkServerTrusted in interface X509TrustManager
Throws:
CertificateException

checkClientTrusted

public void checkClientTrusted(X509Certificate[] certs,
                               String authType)
                        throws CertificateException
Specified by:
checkClientTrusted in interface X509TrustManager
Throws:
CertificateException


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.