| /******************************************************************************* |
| * Copyright (c) 2004, 2008 Tasktop Technologies and others. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * https://www.eclipse.org/legal/epl-2.0 |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Tasktop Technologies - initial API and implementation |
| * Eugene Kuleshov - improvements |
| *******************************************************************************/ |
| |
| package org.eclipse.mylyn.internal.commons.net; |
| |
| import javax.net.ssl.X509TrustManager; |
| |
| /** |
| * TrustAll class implements X509TrustManager to access all https servers with signed and unsigned certificates. |
| * |
| * @author Mik Kersten |
| * @since 2.0 |
| */ |
| 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 |
| } |
| } |