Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.connid.ad.util;
 
 
 public class TrustAllTrustManager implements X509TrustManager {
 
     @Override
    public void checkClientTrusted(X509Certificate[] xcsString string)
            throws CertificateException {
        // do nothing
    }
    @Override
    public void checkServerTrusted(X509Certificate[] xcsString string)
            throws CertificateException {
        // do nothing
    }
    @Override
    public X509Certificate[] getAcceptedIssuers() {
        return new java.security.cert.X509Certificate[0];
    }
New to GrepCode? Check out our FAQ X