Class LDAPSSLSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- org.apache.manifoldcf.core.common.LDAPSSLSocketFactory
-
public class LDAPSSLSocketFactory extends javax.net.ssl.SSLSocketFactoryThis 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 Summary
Fields Modifier and Type Field Description protected static java.lang.ThreadLocal<ISSLSocketFactoryProducer>sslSocketFactoryProducerThis is the implicit way to pass in a socket factory producerprotected javax.net.ssl.SSLSocketFactorywrappedSocketFactory
-
Constructor Summary
Constructors Constructor Description LDAPSSLSocketFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.SocketcreateSocket(java.lang.String source, int port)java.net.SocketcreateSocket(java.lang.String source, int port, java.net.InetAddress target, int targetPort)java.net.SocketcreateSocket(java.net.InetAddress source, int port)java.net.SocketcreateSocket(java.net.InetAddress source, int port, java.net.InetAddress target, int targetPort)java.net.SocketcreateSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose)java.lang.String[]getDefaultCipherSuites()java.lang.String[]getSupportedCipherSuites()static voidsetSocketFactoryProducer(ISSLSocketFactoryProducer p)Set the socket factory producer to use
-
-
-
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
-
-
Constructor Detail
-
LDAPSSLSocketFactory
public LDAPSSLSocketFactory() throws ManifoldCFException- Throws:
ManifoldCFException
-
-
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:
createSocketin classjavax.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:
createSocketin classjavax.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:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.net.InetAddress source, int port) throws java.io.IOException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.lang.String source, int port) throws java.io.IOException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
getDefaultCipherSuites
public java.lang.String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuitesin classjavax.net.ssl.SSLSocketFactory
-
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuitesin classjavax.net.ssl.SSLSocketFactory
-
-