public interface LdapAsyncConnection extends LdapConnection
Modifier and Type | Method and Description |
---|---|
AddFuture |
addAsync(AddRequest addRequest)
Add an entry present in the AddRequest to the server.
|
AddFuture |
addAsync(Entry entry)
Add an entry to the server asynchronously.
|
BindFuture |
anonymousBindAsync()
Anonymous asynchronous Bind on a server.
|
BindFuture |
bindAsync()
Asynchronous Bind on a server, using the LdapConnectionConfig informations.
|
BindFuture |
bindAsync(BindRequest bindRequest)
Do an asynchronous bind, based on a BindRequest.
|
BindFuture |
bindAsync(Dn name,
String credentials)
Simple asynchronous Bind on a server.
|
BindFuture |
bindAsync(String name,
String credentials)
Simple asynchronous Bind on a server.
|
CompareFuture |
compareAsync(CompareRequest compareRequest)
Asynchronously compares an entry's attribute's value with that of the given value
|
DeleteFuture |
deleteAsync(DeleteRequest delRequest)
Performs an asynchronous delete operation based on the delete request object.
|
ExtendedFuture |
extendedAsync(ExtendedRequest extendedRequest)
Asynchronously requests the server to perform an extended operation based on the given request.
|
LdapConnectionConfig |
getConfig()
Configuration of LdapNetworkConnection
|
ModifyFuture |
modifyAsync(ModifyRequest modRequest)
Performs an asynchronous modify operation based on the modifications present in
the ModifyRequest.
|
ModifyDnFuture |
modifyDnAsync(ModifyDnRequest modDnRequest)
Performs the modifyDn operation based on the given ModifyDnRequest.
|
SearchFuture |
searchAsync(Dn baseDn,
String filter,
SearchScope scope,
String... attributes)
Do an asynchronous search, on the base object, using the given filter.
|
SearchFuture |
searchAsync(SearchRequest searchRequest)
Do a search, on the base object, using the given filter.
|
SearchFuture |
searchAsync(String baseDn,
String filter,
SearchScope scope,
String... attributes)
Do an asynchronous search, on the base object, using the given filter.
|
abandon, abandon, add, add, anonymousBind, bind, bind, bind, bind, bind, bind, bind, close, compare, compare, compare, compare, compare, compare, compare, connect, delete, delete, delete, doesFutureExistFor, exists, exists, extended, extended, extended, extended, extended, getBinaryAttributeDetector, getCodecService, getRootDse, getRootDse, getSchemaManager, getSupportedControls, isAuthenticated, isConnected, isControlSupported, isRequestCompleted, loadSchema, loadSchemaRelaxed, lookup, lookup, lookup, lookup, lookup, lookup, modify, modify, modify, modify, modifyDn, move, move, moveAndRename, moveAndRename, moveAndRename, moveAndRename, rename, rename, rename, rename, search, search, search, setBinaryAttributeDetector, setSchemaManager, setTimeOut, unBind
AddFuture addAsync(Entry entry) throws LdapException
entry
- The entry to addLdapException
- if some error occurredAddFuture addAsync(AddRequest addRequest) throws LdapException
addRequest
- the request object containing an entry and controls(if any)LdapException
- if some error occurredBindFuture bindAsync() throws LdapException, IOException
LdapException
- if some error occurredIOException
- if some IO error occurredBindFuture anonymousBindAsync() throws LdapException, IOException
LdapException
- if some error occurredIOException
- if some IO error occurredBindFuture bindAsync(String name, String credentials) throws LdapException, IOException
name
- The name we use to authenticate the user, it must be a valid Dncredentials
- The password, it can't be nullLdapException
- if some error occurredIOException
- if some IO error occurredBindFuture bindAsync(Dn name, String credentials) throws LdapException, IOException
name
- The name we use to authenticate the user, it must be a valid Dncredentials
- The password, it can't be nullLdapException
- if some error occurredIOException
- if some IO error occurredBindFuture bindAsync(BindRequest bindRequest) throws LdapException, IOException
bindRequest
- The BindRequest to sendLdapException
- if some error occurredIOException
- if some IO error occurredSearchFuture searchAsync(String baseDn, String filter, SearchScope scope, String... attributes) throws LdapException
Scope : ONE DerefAlias : ALWAYS SizeLimit : none TimeLimit : none TypesOnly : false Attributes : all the user's attributes. This method is blocking.
baseDn
- The base for the search, it must be a valid Dn, and can't be emtpyfilter
- The filter to use for this search, it can't be emptyscope
- The search scope : OBJECT, ONELEVEL or SUBTREEattributes
- The attributes for this searchLdapException
- if some error occurredSearchFuture searchAsync(Dn baseDn, String filter, SearchScope scope, String... attributes) throws LdapException
Scope : ONE DerefAlias : ALWAYS SizeLimit : none TimeLimit : none TypesOnly : false Attributes : all the user's attributes. This method is blocking.
baseDn
- The base for the search, it must be a valid Dn, and can't be emptyfilter
- The filter to use for this search, it can't be emptyscope
- The search scope : OBJECT, ONELEVEL or SUBTREEattributes
- The attributes for this searchLdapException
- if some error occurredSearchFuture searchAsync(SearchRequest searchRequest) throws LdapException
Scope : ONE DerefAlias : ALWAYS SizeLimit : none TimeLimit : none TypesOnly : false Attributes : all the user's attributes. This method is blocking.
searchRequest
- The search request to send to the serverLdapException
- if some error occurredModifyFuture modifyAsync(ModifyRequest modRequest) throws LdapException
modRequest
- the request for modify operationLdapException
- in case of modify operation failure or timeout happensModifyDnFuture modifyDnAsync(ModifyDnRequest modDnRequest) throws LdapException
modDnRequest
- the requestLdapException
- if some error occurredDeleteFuture deleteAsync(DeleteRequest delRequest) throws LdapException
delRequest
- the delete operation's requestLdapException
- If the Dn is not valid or if the deletion failedCompareFuture compareAsync(CompareRequest compareRequest) throws LdapException
compareRequest
- the CompareRequest which contains the target Dn, attribute name and valueLdapException
- if some error occurredExtendedFuture extendedAsync(ExtendedRequest extendedRequest) throws LdapException
extendedRequest
- the object containing the details of the extended operation to be performedLdapException
- if some error occurredLdapConnectionConfig getConfig()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.