Class ThreadLocalTLSSocketFactory


  • public class ThreadLocalTLSSocketFactory
    extends TLSSocketFactory
    TLSSocketFactory implementation that uses a thread local variable to store configuration. Useful for SSL configurations that can only retrieve the SSLSocketFactory from getDefault().
    Version:
    $Revision: 2231 $ $Date: 2012-02-02 16:46:27 +0100 (Thu, 02 Feb 2012) $
    Author:
    Middleware Services
    • Constructor Detail

      • ThreadLocalTLSSocketFactory

        public ThreadLocalTLSSocketFactory()
    • Method Detail

      • getDefault

        public static javax.net.SocketFactory getDefault()
        This returns the default SSL socket factory.
        Returns:
        socket factory
      • getHostnameVerifierFactory

        public static javax.net.ssl.SSLSocketFactory getHostnameVerifierFactory​(java.lang.String[] names)
        Returns an instance of this socket factory configured with a hostname verifying trust manager.
        Parameters:
        names - to use for hostname verification
        Returns:
        socket factory
      • toString

        public java.lang.String toString()
        Provides a descriptive string representation of this instance.
        Overrides:
        toString in class TLSSocketFactory
        Returns:
        String of the form $Classname::factory=$factory.