public class ApacheLdapProvider extends Object implements Provider<ApacheLdapProviderConfig>
Modifier and Type | Field and Description |
---|---|
private ApacheLdapProviderConfig |
config
Provider configuration.
|
Constructor and Description |
---|
ApacheLdapProvider() |
Modifier and Type | Method and Description |
---|---|
ProviderConnectionFactory<ApacheLdapProviderConfig> |
getConnectionFactory(ConnectionConfig cc)
Returns the connection factory for this provider.
|
protected org.apache.directory.ldap.client.api.LdapConnectionConfig |
getDefaultLdapConnectionConfig(ConnectionConfig cc)
Returns the default connection configuration for this provider.
|
protected SSLContextInitializer |
getHostnameVerifierSSLContextInitializer(ConnectionConfig cc)
Returns an SSLContextInitializer configured with a hostname verifier.
|
ApacheLdapProviderConfig |
getProviderConfig()
Returns the provider configuration.
|
ApacheLdapProvider |
newInstance()
Creates a new instance of this provider.
|
void |
setProviderConfig(ApacheLdapProviderConfig pc)
Sets the provider configuration.
|
private ApacheLdapProviderConfig config
public ProviderConnectionFactory<ApacheLdapProviderConfig> getConnectionFactory(ConnectionConfig cc)
Provider
getConnectionFactory
in interface Provider<ApacheLdapProviderConfig>
cc
- connection configurationprotected SSLContextInitializer getHostnameVerifierSSLContextInitializer(ConnectionConfig cc)
DefaultHostnameVerifier
if no
SSL config has been configured.cc
- connection configurationprotected org.apache.directory.ldap.client.api.LdapConnectionConfig getDefaultLdapConnectionConfig(ConnectionConfig cc)
cc
- to configure withpublic ApacheLdapProviderConfig getProviderConfig()
Provider
getProviderConfig
in interface Provider<ApacheLdapProviderConfig>
public void setProviderConfig(ApacheLdapProviderConfig pc)
Provider
setProviderConfig
in interface Provider<ApacheLdapProviderConfig>
pc
- provider configurationpublic ApacheLdapProvider newInstance()
Provider
newInstance
in interface Provider<ApacheLdapProviderConfig>
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.