org.redmine.ta.internal.comm.naivessl.NaiveX509TrustManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redmine-java-api Show documentation
Show all versions of redmine-java-api Show documentation
Free open-source Java API for Redmine and Chiliproject bug/task management systems.
package org.redmine.ta.internal.comm.naivessl;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.X509TrustManager;
/**
* The goal of this trust manager is to do nothing - it will authorize
* any TSL/SSL secure connection.
*
* @author Bartosz Firyn (SarXos)
*/
public class NaiveX509TrustManager implements X509TrustManager {
@Override
public void checkClientTrusted(X509Certificate[] certs, String str) throws CertificateException {
}
@Override
public void checkServerTrusted(X509Certificate[] certs, String str) throws CertificateException {
}
@Override
public X509Certificate[] getAcceptedIssuers() {
return null;
}
}