public class LDAPSSLSocketFactoryGenerator extends Object
createSubClass(String, SSLSocketFactory)
. This creates a
sub-class of AbstractLDAPSSLSocketFactory
and associates it with the SSLSocketFactory
instance..
The sub-classes are generated dynamically.
This approach is required in order to overcome a limitation in the javax.naming.directory API. It offers
SSLSocketFactory
customization only at the class level only (via the java.naming.ldap.factory.socket
directory context environment parameter). For this reason, a mechanism that can produce distinct
AbstractLDAPSSLSocketFactory
classes each associated with a different SSLSocketFactory instance is required.
Constructor and Description |
---|
LDAPSSLSocketFactoryGenerator() |
Modifier and Type | Method and Description |
---|---|
static Class<? extends AbstractLDAPSSLSocketFactory> |
createSubClass(String simpleName,
SSLSocketFactory sslSocketFactory) |
public static Class<? extends AbstractLDAPSSLSocketFactory> createSubClass(String simpleName, SSLSocketFactory sslSocketFactory)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.