blob: 259f6b6802af8fc724cf7edb86dc99f85c725f2b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2011 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.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
}
}