All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.redmine.ta.internal.comm.naivessl.NaiveX509TrustManager Maven / Gradle / Ivy

Go to download

Free open-source Java API for Redmine and Chiliproject bug/task management systems.

The newest version!
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy