Class ThreadLocalSSLSocketFactory


  • public class ThreadLocalSSLSocketFactory
    extends SocketFactory
    An SocketFactory that allow passing SSLSocket into DirContext. DirContext allows SocketFactory passing only in form of class name string, which prevent to pass different SSL configuration into different DirContexts without standalone classes. This socket factory bypass this using thread local variable with SocketFactory, which should be used in directly following socket-creating DirContext operation.
    Author:
    Jan Kalina