KEYCLOAK-17110

LDAP Connection Pool not used with org.keycloak.truststore.SSLSocketFactory
This commit is contained in:
bohmber 2021-09-14 19:09:46 +02:00 committed by Marek Posolda
parent 6b9e25e42d
commit 4fe7d6d318

View file

@ -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;
}
}