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.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 Summary
Fields Modifier and Type Field Description protected static java.lang.ThreadLocal<ISSLSocketFactoryProducer>
sslSocketFactoryProducer
This is the implicit way to pass in a socket factory producerprotected javax.net.ssl.SSLSocketFactory
wrappedSocketFactory
-
Constructor Summary
Constructors Constructor Description LDAPSSLSocketFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.Socket
createSocket(java.lang.String source, int port)
java.net.Socket
createSocket(java.lang.String source, int port, java.net.InetAddress target, int targetPort)
java.net.Socket
createSocket(java.net.InetAddress source, int port)
java.net.Socket
createSocket(java.net.InetAddress source, int port, java.net.InetAddress target, int targetPort)
java.net.Socket
createSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose)
java.lang.String[]
getDefaultCipherSuites()
java.lang.String[]
getSupportedCipherSuites()
static void
setSocketFactoryProducer(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:
createSocket
in 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:
createSocket
in 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:
createSocket
in 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:
createSocket
in 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:
createSocket
in classjavax.net.SocketFactory
- Throws:
java.io.IOException
-
getDefaultCipherSuites
public java.lang.String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuites
in classjavax.net.ssl.SSLSocketFactory
-
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classjavax.net.ssl.SSLSocketFactory
-
-