Class TLSSocketFactoryFactoryBean

    • Field Detail

      • tlsTrustEngine

        private TrustEngine<?> tlsTrustEngine
        The optional trust engine used in evaluating server TLS credentials.
      • httpClientSecurityParameters

        private HttpClientSecurityParameters httpClientSecurityParameters
        The optional HttpClient security parameters instance that will be used with the HttpClient instance.
      • connectionDisregardTLSCertificate

        private boolean connectionDisregardTLSCertificate
        Whether the responder's SSL/TLS certificate should be ignored.
    • Constructor Detail

      • TLSSocketFactoryFactoryBean

        public TLSSocketFactoryFactoryBean()
    • Method Detail

      • setTLSTrustEngine

        @Deprecated
        public void setTLSTrustEngine​(@Nullable
                                      TrustEngine<? super X509Credential> engine)
        Deprecated.
        use setHttpClientSecurityParameters instead
        Sets the optional trust engine used in evaluating server TLS credentials.
        Parameters:
        engine - the trust engine instance to use, or null
      • setHttpClientSecurityParameters

        public void setHttpClientSecurityParameters​(@Nullable
                                                    HttpClientSecurityParameters params)
        Sets the optional HttpClient security parameters instance that will be used with the HttpClient instance.
        Parameters:
        params - the parameters, or null
      • setConnectionDisregardTLSCertificate

        public void setConnectionDisregardTLSCertificate​(boolean disregard)
        Sets whether the responder's SSL/TLS certificate should be ignored.
        Parameters:
        disregard - whether the responder's SSL/TLS certificate should be ignored
      • getObjectType

        public Class<org.apache.http.conn.socket.LayeredConnectionSocketFactory> getObjectType()
        Specified by:
        getObjectType in interface FactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>
        Specified by:
        getObjectType in class AbstractFactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>
      • createInstance

        protected org.apache.http.conn.socket.LayeredConnectionSocketFactory createInstance()
                                                                                     throws Exception
        Specified by:
        createInstance in class AbstractFactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>
        Throws:
        Exception