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

com.power.common.net.TrustAnyTrustManager Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
package com.power.common.net;

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

/**
 * @author yu 2019/1/18.
 */
public class TrustAnyTrustManager implements X509TrustManager {

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

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

    @Override
    public X509Certificate[] getAcceptedIssuers() {
        return new X509Certificate[]{};
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy