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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static SocketFactory getDefault()
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress host, int port) 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(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket() throws IOException
createSocket
in class SocketFactory
IOException
public 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 © 2020 Atlassian. All rights reserved.