public abstract class AbstractLDAPSSLSocketFactory extends SSLSocketFactory
Concrete implementations of this class are generated dynamically at runtime by
the LDAPSSLSocketFactoryGenerator.createSubClass(String, SSLSocketFactory)
method.
Callers will create new instances of the concrete implementations by using the static
#getDefault()
method. This will return an instance of the sub-class that is
associated with the SSLSocketFactory
.
If callers are passing the sub-class to an API via class-name (i.e. String), the caller must ensure that the context classloader of the thread to set to the classloader of sub-class for the duration of the API call(s).
For more details see LDAPSSLSocketFactoryGenerator
.
Modifier | Constructor and Description |
---|---|
protected |
AbstractLDAPSSLSocketFactory() |
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress host,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(Socket socket,
String host,
int port,
boolean autoClose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort) |
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
createSocket, getDefault
public String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class SSLSocketFactory
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLSocketFactory
public Socket createSocket() throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException
createSocket
in class SSLSocketFactory
IOException
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(InetAddress host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.