cc.kkon.gmhttps.client.TrustAllManager Maven / Gradle / Ivy
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