@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface LDAPInterface
FullLDAPInterface
interface is a subclass of this interface that does include support for
bind and extended operations, but those methods should be used with care to
ensure that they do not inappropriately alter the state of the associated
object.
Modifier and Type | Method and Description |
---|---|
LDAPResult |
add(AddRequest addRequest)
Processes the provided add request.
|
LDAPResult |
add(Entry entry)
Processes an add operation with the provided information.
|
LDAPResult |
add(ReadOnlyAddRequest addRequest)
Processes the provided add request.
|
LDAPResult |
add(java.lang.String... ldifLines)
Processes an add operation with the provided information.
|
LDAPResult |
add(java.lang.String dn,
Attribute... attributes)
Processes an add operation with the provided information.
|
LDAPResult |
add(java.lang.String dn,
java.util.Collection<Attribute> attributes)
Processes an add operation with the provided information.
|
CompareResult |
compare(CompareRequest compareRequest)
Processes the provided compare request.
|
CompareResult |
compare(ReadOnlyCompareRequest compareRequest)
Processes the provided compare request.
|
CompareResult |
compare(java.lang.String dn,
java.lang.String attributeName,
java.lang.String assertionValue)
Processes a compare operation with the provided information.
|
LDAPResult |
delete(DeleteRequest deleteRequest)
Processes the provided delete request.
|
LDAPResult |
delete(ReadOnlyDeleteRequest deleteRequest)
Processes the provided delete request.
|
LDAPResult |
delete(java.lang.String dn)
Deletes the entry with the specified DN.
|
SearchResultEntry |
getEntry(java.lang.String dn)
Retrieves the entry with the specified DN.
|
SearchResultEntry |
getEntry(java.lang.String dn,
java.lang.String... attributes)
Retrieves the entry with the specified DN.
|
RootDSE |
getRootDSE()
Retrieves the directory server root DSE.
|
Schema |
getSchema()
Retrieves the directory server schema definitions, using the subschema
subentry DN contained in the server's root DSE.
|
Schema |
getSchema(java.lang.String entryDN)
Retrieves the directory server schema definitions that govern the specified
entry.
|
LDAPResult |
modify(ModifyRequest modifyRequest)
Processes the provided modify request.
|
LDAPResult |
modify(ReadOnlyModifyRequest modifyRequest)
Processes the provided modify request.
|
LDAPResult |
modify(java.lang.String... ldifModificationLines)
Processes a modify request from the provided LDIF representation of the
changes.
|
LDAPResult |
modify(java.lang.String dn,
java.util.List<Modification> mods)
Applies the provided set of modifications to the specified entry.
|
LDAPResult |
modify(java.lang.String dn,
Modification... mods)
Applies the provided set of modifications to the specified entry.
|
LDAPResult |
modify(java.lang.String dn,
Modification mod)
Applies the provided modification to the specified entry.
|
LDAPResult |
modifyDN(ModifyDNRequest modifyDNRequest)
Processes the provided modify DN request.
|
LDAPResult |
modifyDN(ReadOnlyModifyDNRequest modifyDNRequest)
Processes the provided modify DN request.
|
LDAPResult |
modifyDN(java.lang.String dn,
java.lang.String newRDN,
boolean deleteOldRDN)
Performs a modify DN operation with the provided information.
|
LDAPResult |
modifyDN(java.lang.String dn,
java.lang.String newRDN,
boolean deleteOldRDN,
java.lang.String newSuperiorDN)
Performs a modify DN operation with the provided information.
|
SearchResult |
search(ReadOnlySearchRequest searchRequest)
Processes the provided search request.
|
SearchResult |
search(SearchRequest searchRequest)
Processes the provided search request.
|
SearchResult |
search(SearchResultListener searchResultListener,
java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int sizeLimit,
int timeLimit,
boolean typesOnly,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResult |
search(SearchResultListener searchResultListener,
java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int sizeLimit,
int timeLimit,
boolean typesOnly,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResult |
search(SearchResultListener searchResultListener,
java.lang.String baseDN,
SearchScope scope,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResult |
search(SearchResultListener searchResultListener,
java.lang.String baseDN,
SearchScope scope,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResult |
search(java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int sizeLimit,
int timeLimit,
boolean typesOnly,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResult |
search(java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int sizeLimit,
int timeLimit,
boolean typesOnly,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResult |
search(java.lang.String baseDN,
SearchScope scope,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResult |
search(java.lang.String baseDN,
SearchScope scope,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResultEntry |
searchForEntry(ReadOnlySearchRequest searchRequest)
Processes the provided search request.
|
SearchResultEntry |
searchForEntry(SearchRequest searchRequest)
Processes the provided search request.
|
SearchResultEntry |
searchForEntry(java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int timeLimit,
boolean typesOnly,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResultEntry |
searchForEntry(java.lang.String baseDN,
SearchScope scope,
DereferencePolicy derefPolicy,
int timeLimit,
boolean typesOnly,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResultEntry |
searchForEntry(java.lang.String baseDN,
SearchScope scope,
Filter filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
SearchResultEntry |
searchForEntry(java.lang.String baseDN,
SearchScope scope,
java.lang.String filter,
java.lang.String... attributes)
Processes a search operation with the provided information.
|
@Nullable RootDSE getRootDSE() throws LDAPException
null
if it is not
available.LDAPException
- If a problem occurs while attempting to retrieve
the server root DSE.@Nullable Schema getSchema() throws LDAPException
null
if the
schema information could not be retrieved (e.g, the client does
not have permission to read the server schema).LDAPException
- If a problem occurs while attempting to retrieve
the server schema.@Nullable Schema getSchema(@Nullable java.lang.String entryDN) throws LDAPException
entryDN
- The DN of the entry for which to retrieve the associated
schema definitions. It may be null
or an empty
string if the subschemaSubentry attribute should be
retrieved from the server's root DSE.null
if the
schema information could not be retrieved (e.g, the client does
not have permission to read the server schema).LDAPException
- If a problem occurs while attempting to retrieve
the server schema.@Nullable SearchResultEntry getEntry(@NotNull java.lang.String dn) throws LDAPException
dn
- The DN of the entry to retrieve. It must not be null
.null
if the target entry does not
exist or no entry was returned (e.g., if the authenticated user
does not have permission to read the target entry).LDAPException
- If a problem occurs while sending the request or
reading the response.@Nullable SearchResultEntry getEntry(@NotNull java.lang.String dn, @Nullable java.lang.String... attributes) throws LDAPException
dn
- The DN of the entry to retrieve. It must not be
null
.attributes
- The set of attributes to request for the target entry.
If it is null
, then all user attributes will be
requested.null
if the target entry does not
exist or no entry was returned (e.g., if the authenticated user
does not have permission to read the target entry).LDAPException
- If a problem occurs while sending the request or
reading the response.@NotNull LDAPResult add(@NotNull java.lang.String dn, @NotNull Attribute... attributes) throws LDAPException
dn
- The DN of the entry to add. It must not be
null
.attributes
- The set of attributes to include in the entry to add.
It must not be null
.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult add(@NotNull java.lang.String dn, @NotNull java.util.Collection<Attribute> attributes) throws LDAPException
dn
- The DN of the entry to add. It must not be
null
.attributes
- The set of attributes to include in the entry to add.
It must not be null
.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult add(@NotNull Entry entry) throws LDAPException
entry
- The entry to add. It must not be null
.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult add(@NotNull java.lang.String... ldifLines) throws LDIFException, LDAPException
ldifLines
- The lines that comprise an LDIF representation of the
entry to add. It must not be empty or null
.LDIFException
- If the provided entry lines cannot be decoded as an
entry in LDIF form.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult add(@NotNull AddRequest addRequest) throws LDAPException
addRequest
- The add request to be processed. It must not be
null
.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult add(@NotNull ReadOnlyAddRequest addRequest) throws LDAPException
addRequest
- The add request to be processed. It must not be
null
.LDAPException
- If the server rejects the add request, or if a
problem is encountered while sending the request or
reading the response.@NotNull CompareResult compare(@NotNull java.lang.String dn, @NotNull java.lang.String attributeName, @NotNull java.lang.String assertionValue) throws LDAPException
dn
- The DN of the entry in which to make the
comparison. It must not be null
.attributeName
- The attribute name for which to make the
comparison. It must not be null
.assertionValue
- The assertion value to verify in the target entry.
It must not be null
.LDAPException
- If the server rejects the compare request, or if a
problem is encountered while sending the request or
reading the response.@NotNull CompareResult compare(@NotNull CompareRequest compareRequest) throws LDAPException
compareRequest
- The compare request to be processed. It must not
be null
.LDAPException
- If the server rejects the compare request, or if a
problem is encountered while sending the request or
reading the response.@NotNull CompareResult compare(@NotNull ReadOnlyCompareRequest compareRequest) throws LDAPException
compareRequest
- The compare request to be processed. It must not
be null
.LDAPException
- If the server rejects the compare request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult delete(@NotNull java.lang.String dn) throws LDAPException
dn
- The DN of the entry to delete. It must not be null
.LDAPException
- If the server rejects the delete request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult delete(@NotNull DeleteRequest deleteRequest) throws LDAPException
deleteRequest
- The delete request to be processed. It must not be
null
.LDAPException
- If the server rejects the delete request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult delete(@NotNull ReadOnlyDeleteRequest deleteRequest) throws LDAPException
deleteRequest
- The delete request to be processed. It must not be
null
.LDAPException
- If the server rejects the delete request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult modify(@NotNull java.lang.String dn, @NotNull Modification mod) throws LDAPException
dn
- The DN of the entry to modify. It must not be null
.mod
- The modification to apply to the target entry. It must not
be null
.LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult modify(@NotNull java.lang.String dn, @NotNull Modification... mods) throws LDAPException
dn
- The DN of the entry to modify. It must not be null
.mods
- The set of modifications to apply to the target entry. It
must not be null
or empty. *LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult modify(@NotNull java.lang.String dn, @NotNull java.util.List<Modification> mods) throws LDAPException
dn
- The DN of the entry to modify. It must not be null
.mods
- The set of modifications to apply to the target entry. It
must not be null
or empty.LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult modify(@NotNull java.lang.String... ldifModificationLines) throws LDIFException, LDAPException
ldifModificationLines
- The lines that comprise an LDIF
representation of a modify change record.
It must not be null
or empty.LDIFException
- If the provided set of lines cannot be parsed as an
LDIF modify change record.LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult modify(@NotNull ModifyRequest modifyRequest) throws LDAPException
modifyRequest
- The modify request to be processed. It must not be
null
.LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult modify(@NotNull ReadOnlyModifyRequest modifyRequest) throws LDAPException
modifyRequest
- The modify request to be processed. It must not be
null
.LDAPException
- If the server rejects the modify request, or if a
problem is encountered while sending the request or
reading the response.@NotNull LDAPResult modifyDN(@NotNull java.lang.String dn, @NotNull java.lang.String newRDN, boolean deleteOldRDN) throws LDAPException
dn
- The current DN for the entry to rename. It must not
be null
.newRDN
- The new RDN to use for the entry. It must not be
null
.deleteOldRDN
- Indicates whether to delete the current RDN value
from the entry.LDAPException
- If the server rejects the modify DN request, or if
a problem is encountered while sending the request
or reading the response.@NotNull LDAPResult modifyDN(@NotNull java.lang.String dn, @NotNull java.lang.String newRDN, boolean deleteOldRDN, @Nullable java.lang.String newSuperiorDN) throws LDAPException
dn
- The current DN for the entry to rename. It must not
be null
.newRDN
- The new RDN to use for the entry. It must not be
null
.deleteOldRDN
- Indicates whether to delete the current RDN value
from the entry.newSuperiorDN
- The new superior DN for the entry. It may be
null
if the entry is not to be moved below a
new parent.LDAPException
- If the server rejects the modify DN request, or if
a problem is encountered while sending the request
or reading the response.@NotNull LDAPResult modifyDN(@NotNull ModifyDNRequest modifyDNRequest) throws LDAPException
modifyDNRequest
- The modify DN request to be processed. It must
not be null
.LDAPException
- If the server rejects the modify DN request, or if
a problem is encountered while sending the request
or reading the response.@NotNull LDAPResult modifyDN(@NotNull ReadOnlyModifyDNRequest modifyDNRequest) throws LDAPException
modifyDNRequest
- The modify DN request to be processed. It must
not be null
.LDAPException
- If the server rejects the modify DN request, or if
a problem is encountered while sending the request
or reading the response.@NotNull SearchResult search(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
SearchResult
object that is returned.
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.filter
- The string representation of the filter to use to
identify matching entries. It must not be
null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while parsing
the provided filter string, sending the
request, or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull SearchResult search(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
SearchResult
object that is returned.
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.filter
- The filter to use to identify matching entries. It
must not be null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull SearchResult search(@Nullable SearchResultListener searchResultListener, @NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).searchResultListener
- The search result listener that should be
used to return results to the client. It may
be null
if the search results should
be collected internally and returned in the
SearchResult
object.baseDN
- The base DN for the search request. It must
not be null
.scope
- The scope that specifies the range of entries
that should be examined for the search.filter
- The string representation of the filter to
use to identify matching entries. It must
not be null
.attributes
- The set of attributes that should be returned
in matching entries. It may be null
or empty if the default attribute set (all
user attributes) is to be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while parsing
the provided filter string, sending the
request, or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull SearchResult search(@Nullable SearchResultListener searchResultListener, @NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).searchResultListener
- The search result listener that should be
used to return results to the client. It may
be null
if the search results should
be collected internally and returned in the
SearchResult
object.baseDN
- The base DN for the search request. It must
not be null
.scope
- The scope that specifies the range of entries
that should be examined for the search.filter
- The filter to use to identify matching
entries. It must not be null
.attributes
- The set of attributes that should be returned
in matching entries. It may be null
or empty if the default attribute set (all
user attributes) is to be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull SearchResult search(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int sizeLimit, int timeLimit, boolean typesOnly, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
SearchResult
object that is returned.
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.derefPolicy
- The dereference policy the server should use for any
aliases encountered while processing the search.sizeLimit
- The maximum number of entries that the server should
return for the search. A value of zero indicates that
there should be no limit.timeLimit
- The maximum length of time in seconds that the server
should spend processing this search request. A value
of zero indicates that there should be no limit.typesOnly
- Indicates whether to return only attribute names in
matching entries, or both attribute names and values.filter
- The string representation of the filter to use to
identify matching entries. It must not be
null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while parsing
the provided filter string, sending the
request, or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull SearchResult search(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int sizeLimit, int timeLimit, boolean typesOnly, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
SearchResult
object that is returned.
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.derefPolicy
- The dereference policy the server should use for any
aliases encountered while processing the search.sizeLimit
- The maximum number of entries that the server should
return for the search. A value of zero indicates that
there should be no limit.timeLimit
- The maximum length of time in seconds that the server
should spend processing this search request. A value
of zero indicates that there should be no limit.typesOnly
- Indicates whether to return only attribute names in
matching entries, or both attribute names and values.filter
- The filter to use to identify matching entries. It
must not be null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull SearchResult search(@Nullable SearchResultListener searchResultListener, @NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int sizeLimit, int timeLimit, boolean typesOnly, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).searchResultListener
- The search result listener that should be
used to return results to the client. It may
be null
if the search results should
be collected internally and returned in the
SearchResult
object.baseDN
- The base DN for the search request. It must
not be null
.scope
- The scope that specifies the range of entries
that should be examined for the search.derefPolicy
- The dereference policy the server should use
for any aliases encountered while processing
the search.sizeLimit
- The maximum number of entries that the server
should return for the search. A value of
zero indicates that there should be no limit.timeLimit
- The maximum length of time in seconds that
the server should spend processing this
search request. A value of zero indicates
that there should be no limit.typesOnly
- Indicates whether to return only attribute
names in matching entries, or both attribute
names and values.filter
- The string representation of the filter to
use to identify matching entries. It must
not be null
.attributes
- The set of attributes that should be returned
in matching entries. It may be null
or empty if the default attribute set (all
user attributes) is to be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while parsing
the provided filter string, sending the
request, or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull SearchResult search(@Nullable SearchResultListener searchResultListener, @NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int sizeLimit, int timeLimit, boolean typesOnly, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).searchResultListener
- The search result listener that should be
used to return results to the client. It may
be null
if the search results should
be collected internally and returned in the
SearchResult
object.baseDN
- The base DN for the search request. It must
not be null
.scope
- The scope that specifies the range of entries
that should be examined for the search.derefPolicy
- The dereference policy the server should use
for any aliases encountered while processing
the search.sizeLimit
- The maximum number of entries that the server
should return for the search. A value of
zero indicates that there should be no limit.timeLimit
- The maximum length of time in seconds that
the server should spend processing this
search request. A value of zero indicates
that there should be no limit.typesOnly
- Indicates whether to return only attribute
names in matching entries, or both attribute
names and values.filter
- The filter to use to identify matching
entries. It must not be null
.attributes
- The set of attributes that should be returned
in matching entries. It may be null
or empty if the default attribute set (all
user attributes) is to be requested.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull SearchResult search(@NotNull SearchRequest searchRequest) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).searchRequest
- The search request to be processed. It must not be
null
.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@NotNull SearchResult search(@NotNull ReadOnlySearchRequest searchRequest) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references (although if a search result listener was provided,
then it will have been used to make any entries and references available,
and they will not be available through the getSearchEntries
and
getSearchReferences
methods).searchRequest
- The search request to be processed. It must not be
null
.LDAPSearchException
- If the search does not complete successfully,
or if a problem is encountered while sending
the request or reading the response. If one
or more entries or references were returned
before the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable SearchResultEntry searchForEntry(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.filter
- The string representation of the filter to use to
identify matching entries. It must not be
null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable SearchResultEntry searchForEntry(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.filter
- The string representation of the filter to use to
identify matching entries. It must not be
null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable SearchResultEntry searchForEntry(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int timeLimit, boolean typesOnly, @NotNull java.lang.String filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.derefPolicy
- The dereference policy the server should use for any
aliases encountered while processing the search.timeLimit
- The maximum length of time in seconds that the server
should spend processing this search request. A value
of zero indicates that there should be no limit.typesOnly
- Indicates whether to return only attribute names in
matching entries, or both attribute names and values.filter
- The string representation of the filter to use to
identify matching entries. It must not be
null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable SearchResultEntry searchForEntry(@NotNull java.lang.String baseDN, @NotNull SearchScope scope, @NotNull DereferencePolicy derefPolicy, int timeLimit, boolean typesOnly, @NotNull Filter filter, @Nullable java.lang.String... attributes) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.baseDN
- The base DN for the search request. It must not be
null
.scope
- The scope that specifies the range of entries that
should be examined for the search.derefPolicy
- The dereference policy the server should use for any
aliases encountered while processing the search.timeLimit
- The maximum length of time in seconds that the server
should spend processing this search request. A value
of zero indicates that there should be no limit.typesOnly
- Indicates whether to return only attribute names in
matching entries, or both attribute names and values.filter
- The filter to use to identify matching entries. It
must not be null
.attributes
- The set of attributes that should be returned in
matching entries. It may be null
or empty if
the default attribute set (all user attributes) is to
be requested.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable SearchResultEntry searchForEntry(@NotNull SearchRequest searchRequest) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.searchRequest
- The search request to be processed. If it is
configured with a search result listener or a size
limit other than one, then the provided request will
be duplicated with the appropriate settings.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.@Nullable SearchResultEntry searchForEntry(@NotNull ReadOnlySearchRequest searchRequest) throws LDAPSearchException
LDAPSearchException
will be thrown In some cases, one or more
search result entries or references may have been returned before the
failure response is received. In this case, the
LDAPSearchException
methods like getEntryCount
,
getSearchEntries
, getReferenceCount
, and
getSearchReferences
may be used to obtain information about those
entries and references.searchRequest
- The search request to be processed. If it is
configured with a search result listener or a size
limit other than one, then the provided request will
be duplicated with the appropriate settings.null
if no
entry was returned or the base entry does not exist.LDAPSearchException
- If the search does not complete successfully,
if more than a single entry is returned, or
if a problem is encountered while parsing the
provided filter string, sending the request,
or reading the response. If one or more
entries or references were returned before
the failure was encountered, then the
LDAPSearchException
object may be
examined to obtain information about those
entries and/or references.