public interface Connection
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
|
SearchResults |
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.
|
SearchResults 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
boolean isConnectionAlive()
boolean isBound()
boolean isTLS()
boolean isConnected()