| /******************************************************************************* |
| * Copyright (c) 2004, 2011 Tasktop Technologies and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Tasktop Technologies - initial API and implementation |
| * Eugene Kuleshov - improvements |
| *******************************************************************************/ |
| |
| package org.eclipse.mylyn.commons.core.net; |
| |
| import javax.net.ssl.X509TrustManager; |
| |
| /** |
| * TrustAll class implements X509TrustManager to access all https servers with signed and unsigned certificates. |
| * |
| * @author Mik Kersten |
| * @since 3.7 |
| */ |
| public class TrustAllTrustManager implements X509TrustManager { |
| |
| public java.security.cert.X509Certificate[] getAcceptedIssuers() { |
| return null; |
| } |
| |
| public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) { |
| // don't need to do any checks |
| } |
| |
| public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) { |
| // don't need to do any checks |
| } |
| |
| } |