KEYCLOAK-17110
LDAP Connection Pool not used with org.keycloak.truststore.SSLSocketFactory
This commit is contained in:
parent
6b9e25e42d
commit
4fe7d6d318
1 changed files with 6 additions and 1 deletions
|
@ -22,6 +22,7 @@ import org.jboss.logging.Logger;
|
|||
import java.io.IOException;
|
||||
import java.net.InetAddress;
|
||||
import java.net.Socket;
|
||||
import java.util.Comparator;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -36,7 +37,7 @@ import java.net.Socket;
|
|||
* @author <a href="mailto:mstrukel@redhat.com">Marko Strukelj</a>
|
||||
*/
|
||||
|
||||
public class SSLSocketFactory extends javax.net.ssl.SSLSocketFactory {
|
||||
public class SSLSocketFactory extends javax.net.ssl.SSLSocketFactory implements Comparator {
|
||||
|
||||
private static final Logger log = Logger.getLogger(SSLSocketFactory.class);
|
||||
|
||||
|
@ -107,4 +108,8 @@ public class SSLSocketFactory extends javax.net.ssl.SSLSocketFactory {
|
|||
return sslsf.createSocket();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compare(Object socketFactory1, Object socketFactory2) {
|
||||
return socketFactory1.equals(socketFactory2) ? 0 : -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue