W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

2006/unicorn/src/org/w3c/unicorn/request TrustAllManager.java,NONE,1.1

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Sun, 21 Mar 2010 22:33:54 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NtTiU-00010r-SF@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/request
In directory hutz:/tmp/cvs-serv3879/src/org/w3c/unicorn/request

Added Files:
	TrustAllManager.java 
Log Message:
TrustManager class that trusts any SSL certificate 

--- NEW FILE: TrustAllManager.java ---
package org.w3c.unicorn.request;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

public class TrustAllManager implements X509TrustManager {

	public void checkClientTrusted(X509Certificate[] arg0, String arg1)
			throws CertificateException {
	}

	public void checkServerTrusted(X509Certificate[] arg0, String arg1)
			throws CertificateException {
	}

	public X509Certificate[] getAcceptedIssuers() {
		return null;
	}

}
Received on Sunday, 21 March 2010 22:33:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:19 GMT