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

cc.kkon.gmhttps.client.TrustAllManager Maven / Gradle / Ivy

There is a newer version: 0.2.1
Show newest version
package cc.kkon.gmhttps.client;

import javax.net.ssl.X509TrustManager;
import java.security.cert.X509Certificate;

public class TrustAllManager implements X509TrustManager {
    private final X509Certificate[] issuers;

    public TrustAllManager() {
        this.issuers = new X509Certificate[0];
    }

    public X509Certificate[] getAcceptedIssuers() {
        return issuers;
    }

    public void checkClientTrusted(X509Certificate[] chain, String authType) {
    }

    public void checkServerTrusted(X509Certificate[] chain, String authType) {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy