Class TrustSelfSignedStrategy

java.lang.Object
com.github.tomakehurst.wiremock.http.client.apache5.TrustSelfSignedStrategy
All Implemented Interfaces:
com.github.tomakehurst.wiremock.http.ssl.TrustStrategy, org.apache.hc.core5.ssl.TrustStrategy

public class TrustSelfSignedStrategy extends Object implements org.apache.hc.core5.ssl.TrustStrategy, com.github.tomakehurst.wiremock.http.ssl.TrustStrategy
  • Constructor Details

    • TrustSelfSignedStrategy

      public TrustSelfSignedStrategy()
  • Method Details

    • isTrusted

      public boolean isTrusted(X509Certificate[] chain, String authType)
      Specified by:
      isTrusted in interface com.github.tomakehurst.wiremock.http.ssl.TrustStrategy
      Specified by:
      isTrusted in interface org.apache.hc.core5.ssl.TrustStrategy
    • isTrusted

      public boolean isTrusted(X509Certificate[] chain, String authType, Socket socket)
      Specified by:
      isTrusted in interface com.github.tomakehurst.wiremock.http.ssl.TrustStrategy
    • isTrusted

      public boolean isTrusted(X509Certificate[] chain, String authType, SSLEngine engine)
      Specified by:
      isTrusted in interface com.github.tomakehurst.wiremock.http.ssl.TrustStrategy