Class TrustSelfSignedStrategy

  • All Implemented Interfaces:
    TrustStrategy, org.apache.http.ssl.TrustStrategy

    public class TrustSelfSignedStrategy
    extends java.lang.Object
    implements TrustStrategy
    A trust strategy that accepts self-signed certificates as trusted. Verification of all other certificates is done by the trust manager configured in the SSL context.
    Since:
    4.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isTrusted​(java.security.cert.X509Certificate[] chain, java.lang.String authType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrustSelfSignedStrategy

        public TrustSelfSignedStrategy()
    • Method Detail

      • isTrusted

        public boolean isTrusted​(java.security.cert.X509Certificate[] chain,
                                 java.lang.String authType)
                          throws java.security.cert.CertificateException
        Specified by:
        isTrusted in interface org.apache.http.ssl.TrustStrategy
        Throws:
        java.security.cert.CertificateException