Package com.floragunn.dlic.auth.ldap2
Class LDAPConnectionManager
- java.lang.Object
-
- com.floragunn.dlic.auth.ldap2.LDAPConnectionManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class LDAPConnectionManager extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description LDAPConnectionManager(org.elasticsearch.common.settings.Settings settings, Path configPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckDnPassword(String dn, byte[] password)voidcheckDnPassword(String dn, String password)voidclose()com.unboundid.ldap.sdk.SearchResultEntryexists(com.unboundid.ldap.sdk.LDAPConnection con, String name)com.unboundid.ldap.sdk.LDAPConnectiongetConnection()com.unboundid.ldap.sdk.SearchResultEntrylookup(com.unboundid.ldap.sdk.LDAPConnection con, String dn)List<com.unboundid.ldap.sdk.SearchResultEntry>search(com.unboundid.ldap.sdk.LDAPConnection con, String baseDN, com.unboundid.ldap.sdk.SearchScope scope, ParametrizedFilter filter)
-
-
-
Constructor Detail
-
LDAPConnectionManager
public LDAPConnectionManager(org.elasticsearch.common.settings.Settings settings, Path configPath) throws com.unboundid.ldap.sdk.LDAPException, SettingsBasedSSLConfigurator.SSLConfigException- Throws:
com.unboundid.ldap.sdk.LDAPExceptionSettingsBasedSSLConfigurator.SSLConfigException
-
-
Method Detail
-
getConnection
public com.unboundid.ldap.sdk.LDAPConnection getConnection() throws com.unboundid.ldap.sdk.LDAPException- Throws:
com.unboundid.ldap.sdk.LDAPException
-
checkDnPassword
public void checkDnPassword(String dn, String password) throws com.unboundid.ldap.sdk.LDAPException
- Throws:
com.unboundid.ldap.sdk.LDAPException
-
checkDnPassword
public void checkDnPassword(String dn, byte[] password) throws com.unboundid.ldap.sdk.LDAPException
- Throws:
com.unboundid.ldap.sdk.LDAPException
-
search
public List<com.unboundid.ldap.sdk.SearchResultEntry> search(com.unboundid.ldap.sdk.LDAPConnection con, String baseDN, com.unboundid.ldap.sdk.SearchScope scope, ParametrizedFilter filter) throws com.unboundid.ldap.sdk.LDAPException
- Throws:
com.unboundid.ldap.sdk.LDAPException
-
lookup
public com.unboundid.ldap.sdk.SearchResultEntry lookup(com.unboundid.ldap.sdk.LDAPConnection con, String dn) throws com.unboundid.ldap.sdk.LDAPException- Throws:
com.unboundid.ldap.sdk.LDAPException
-
exists
public com.unboundid.ldap.sdk.SearchResultEntry exists(com.unboundid.ldap.sdk.LDAPConnection con, String name) throws com.unboundid.ldap.sdk.LDAPException- Throws:
com.unboundid.ldap.sdk.LDAPException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-