public interface LDAPSearchActivity
Connection| Modifier and Type | Field and Description |
|---|---|
static int |
SCOPE_BASE
search only the base DN
|
static int |
SCOPE_ONE
search only entries under the base DN
|
static int |
SCOPE_SUB
search the base DN and all entries within its subtree
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBound()
Reports whether the connection is bound with the LDAP Server
|
boolean |
isConnected()
Reports whether this connection is connected to an LDAP server
|
boolean |
isConnectionAlive()
Reports whether the connection with the LDAP Server is still open
|
boolean |
isTLS()
Reports whether it is a secure connection
|
void |
search(java.lang.String base,
int scope,
java.lang.String filter,
java.lang.String[] attrs,
boolean typesOnly,
SearchConstraints searchConstraints)
Performs the search specified by the criteria that you enter.
|
static final int SCOPE_BASE
static final int SCOPE_ONE
static final int SCOPE_SUB
boolean isBound()
boolean isConnected()
boolean isConnectionAlive()
boolean isTLS()
void search(java.lang.String base,
int scope,
java.lang.String filter,
java.lang.String[] attrs,
boolean typesOnly,
SearchConstraints searchConstraints)
throws SearchException
base - the base distinguished name from which to searchscope - the scope of the entries to search. You can specify one of the following:
filter - search filter specifying the search criteriaattrs - list of attributes to return in the search resultstypesOnly - if true, returns the names but not the values of the attributes found. If false, returns the names and values for attributes foundsearchConstraints - constraints specific to this searchSearchException - Failed to complete the specified search.SearchConstraints, SearchResults