com.gargoylesoftware.htmlunit.ssl
Class InsecureTrustManager
java.lang.Object
com.gargoylesoftware.htmlunit.ssl.InsecureTrustManager
- All Implemented Interfaces:
- TrustManager, X509TrustManager
public class InsecureTrustManager
- extends Object
- implements X509TrustManager
A completely insecure (yet very easy to use) x509 trust manager. This manager trusts all servers
and all clients, regardless of credentials or lack thereof.
- Version:
- $Revision: 5301 $
- Author:
- Daniel Gredler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InsecureTrustManager
public InsecureTrustManager()
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain,
String authType)
throws CertificateException
-
- Specified by:
checkClientTrusted
in interface X509TrustManager
- Throws:
CertificateException
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain,
String authType)
throws CertificateException
-
- Specified by:
checkServerTrusted
in interface X509TrustManager
- Throws:
CertificateException
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
-
- Specified by:
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.