Class CustomSocketFactory

  • All Implemented Interfaces:
    Comparator<SocketFactory>

    public class CustomSocketFactory
    extends SocketFactory
    implements Comparator<SocketFactory>
    Custom socket factory for ldaps (SSL). The comparator only works in JDK 1.6 onwards. Due to a bug in JDK 1.6 compare method invocation fails with a classcast exception. The caller is trying to pass java.lang.String when it should have passed javax.net.SocketFactory
    See Also:
    LDAPRealm