devutility.internal.net.DefaultTrustManager Maven / Gradle / Ivy
package devutility.internal.net;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
public class DefaultTrustManager implements X509TrustManager {
@Override
public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {
}
@Override
public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {
}
@Override
public X509Certificate[] getAcceptedIssuers() {
return null;
}
public static TrustManager[] trustManagers() {
TrustManager[] tm = { new DefaultTrustManager() };
return tm;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy