Class LDAPSSLSocketFactory


  • public class LDAPSSLSocketFactory
    extends javax.net.ssl.SSLSocketFactory
    This SSLSocketFactory is meant to be instantiated by Java's LDAP code. It has to be instantiated by name, using the default constructor, so its functionality is quite limited. It really has little choice other than to trust the certificates from the server.
    • Field Detail

      • sslSocketFactoryProducer

        protected static final java.lang.ThreadLocal<ISSLSocketFactoryProducer> sslSocketFactoryProducer
        This is the implicit way to pass in a socket factory producer
      • wrappedSocketFactory

        protected final javax.net.ssl.SSLSocketFactory wrappedSocketFactory
    • Method Detail

      • setSocketFactoryProducer

        public static void setSocketFactoryProducer​(ISSLSocketFactoryProducer p)
        Set the socket factory producer to use
      • createSocket

        public java.net.Socket createSocket​(java.net.Socket s,
                                            java.lang.String host,
                                            int port,
                                            boolean autoClose)
                                     throws java.io.IOException
        Specified by:
        createSocket in class javax.net.ssl.SSLSocketFactory
        Throws:
        java.io.IOException
      • createSocket

        public java.net.Socket createSocket​(java.net.InetAddress source,
                                            int port,
                                            java.net.InetAddress target,
                                            int targetPort)
                                     throws java.io.IOException
        Specified by:
        createSocket in class javax.net.SocketFactory
        Throws:
        java.io.IOException
      • createSocket

        public java.net.Socket createSocket​(java.lang.String source,
                                            int port,
                                            java.net.InetAddress target,
                                            int targetPort)
                                     throws java.io.IOException
        Specified by:
        createSocket in class javax.net.SocketFactory
        Throws:
        java.io.IOException
      • createSocket

        public java.net.Socket createSocket​(java.net.InetAddress source,
                                            int port)
                                     throws java.io.IOException
        Specified by:
        createSocket in class javax.net.SocketFactory
        Throws:
        java.io.IOException
      • createSocket

        public java.net.Socket createSocket​(java.lang.String source,
                                            int port)
                                     throws java.io.IOException
        Specified by:
        createSocket in class javax.net.SocketFactory
        Throws:
        java.io.IOException
      • getDefaultCipherSuites

        public java.lang.String[] getDefaultCipherSuites()
        Specified by:
        getDefaultCipherSuites in class javax.net.ssl.SSLSocketFactory
      • getSupportedCipherSuites

        public java.lang.String[] getSupportedCipherSuites()
        Specified by:
        getSupportedCipherSuites in class javax.net.ssl.SSLSocketFactory