public class LdapHostnameVerificationSSLSocketFactory extends SocketFactory implements Comparator<String>
This SocketFactory needs to call
SSLParameters.setEndpointIdentificationAlgorithm(String) to enable LDAPS hostname
verification.
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String socketFactory1,
String socketFactory2)
As per Pooling Custom Socket Factory Connections,
support comparing socket factories.
|
Socket |
createSocket() |
Socket |
createSocket(InetAddress host,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort) |
static SocketFactory |
getDefault() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static SocketFactory getDefault()
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket() throws IOException
createSocket in class SocketFactoryIOExceptionpublic int compare(String socketFactory1, String socketFactory2)
String instances (the factory class name) rather than SocketFactory due to a bug in Java; see
Pooling LDAP connections with custom socket factory - Stack Overflow.compare in interface Comparator<String>Copyright © 2019 Atlassian. All rights reserved.