Class LdapGroupsMapping.LdapSslSocketFactory

java.lang.Object
javax.net.SocketFactory
org.apache.hadoop.security.LdapGroupsMapping.LdapSslSocketFactory
Enclosing class:
LdapGroupsMapping

@Private public static class LdapGroupsMapping.LdapSslSocketFactory extends SocketFactory
An private internal socket factory used to create SSL sockets with custom configuration. There is no way to pass a specific instance of a factory to the Java naming services, and the instantiated socket factory is not passed any contextual information, so all information must be encapsulated directly in the class. Static fields are used here to achieve this. This is safe since the only usage of LdapGroupsMapping is within Groups, which is a singleton (see the GROUPS field).

This has nearly the same behavior as an SSLSocketFactory. The only additional logic is to configure the key store and trust store.

This is public only to be accessible by the Java naming services.