net.sf.jameleon.util
Class X509TrustEverythingManager
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X509TrustEverythingManager
public X509TrustEverythingManager()
- Constructor for EasyX509TrustManager.
X509TrustEverythingManager
public X509TrustEverythingManager(KeyStore keystore)
throws NoSuchAlgorithmException,
KeyStoreException
- Constructor for EasyX509TrustManager.
- Throws:
NoSuchAlgorithmException
KeyStoreException
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.