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

org.littleshoot.proxy.extras.TrustingTrustManager Maven / Gradle / Ivy

Go to download

LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.

The newest version!
package org.littleshoot.proxy.extras;

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

/**
 * TrustManager that trusts all servers
 */
class TrustingTrustManager implements X509TrustManager {
  @Override
  public void checkClientTrusted(X509Certificate[] arg0, String arg1) {
  }

  @Override
  public void checkServerTrusted(X509Certificate[] arg0, String arg1) {
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy