Interface LdapAsyncConnection

    • Method Detail

      • addAsync

        AddFuture addAsync​(Entry entry)
                    throws LdapException
        Add an entry to the server asynchronously. This is a non blocking add : the user has to get for the response from the returned Future.
        Parameters:
        entry - The entry to add
        Returns:
        the add operation's future
        Throws:
        LdapException - if some error occurred
      • addAsync

        AddFuture addAsync​(AddRequest addRequest)
                    throws LdapException
        Add an entry present in the AddRequest to the server.
        Parameters:
        addRequest - the request object containing an entry and controls(if any)
        Returns:
        the add operation's future
        Throws:
        LdapException - if some error occurred
      • bindAsync

        BindFuture bindAsync​(String name,
                             String credentials)
                      throws LdapException,
                             IOException
        Simple asynchronous Bind on a server.
        Parameters:
        name - The name we use to authenticate the user, it must be a valid Dn
        credentials - The password, it can't be null
        Returns:
        the bind operation's future
        Throws:
        LdapException - if some error occurred
        IOException - if some IO error occurred
      • bindAsync

        BindFuture bindAsync​(Dn name,
                             String credentials)
                      throws LdapException,
                             IOException
        Simple asynchronous Bind on a server.
        Parameters:
        name - The name we use to authenticate the user, it must be a valid Dn
        credentials - The password, it can't be null
        Returns:
        the bind operation's future
        Throws:
        LdapException - if some error occurred
        IOException - if some IO error occurred
      • searchAsync

        SearchFuture searchAsync​(String baseDn,
                                 String filter,
                                 SearchScope scope,
                                 String... attributes)
                          throws LdapException
        Do an asynchronous search, on the base object, using the given filter. The SearchRequest parameters default to :
         Scope : ONE
         DerefAlias : ALWAYS
         SizeLimit : none
         TimeLimit : none
         TypesOnly : false
         Attributes : all the user's attributes.
         This method is blocking.
         
        Parameters:
        baseDn - The base for the search, it must be a valid Dn, and can't be emtpy
        filter - The filter to use for this search, it can't be empty
        scope - The search scope : OBJECT, ONELEVEL or SUBTREE
        attributes - The attributes for this search
        Returns:
        the search operation's future
        Throws:
        LdapException - if some error occurred
      • searchAsync

        SearchFuture searchAsync​(Dn baseDn,
                                 String filter,
                                 SearchScope scope,
                                 String... attributes)
                          throws LdapException
        Do an asynchronous search, on the base object, using the given filter. The SearchRequest parameters default to :
         Scope : ONE
         DerefAlias : ALWAYS
         SizeLimit : none
         TimeLimit : none
         TypesOnly : false
         Attributes : all the user's attributes.
         This method is blocking.
         
        Parameters:
        baseDn - The base for the search, it must be a valid Dn, and can't be empty
        filter - The filter to use for this search, it can't be empty
        scope - The search scope : OBJECT, ONELEVEL or SUBTREE
        attributes - The attributes for this search
        Returns:
        the search operation's future
        Throws:
        LdapException - if some error occurred
      • searchAsync

        SearchFuture searchAsync​(SearchRequest searchRequest)
                          throws LdapException
        Do a search, on the base object, using the given filter. The SearchRequest parameters default to :
         Scope : ONE
         DerefAlias : ALWAYS
         SizeLimit : none
         TimeLimit : none
         TypesOnly : false
         Attributes : all the user's attributes.
         This method is blocking.
         
        Parameters:
        searchRequest - The search request to send to the server
        Returns:
        the search operation's future
        Throws:
        LdapException - if some error occurred
      • modifyAsync

        ModifyFuture modifyAsync​(ModifyRequest modRequest)
                          throws LdapException
        Performs an asynchronous modify operation based on the modifications present in the ModifyRequest.
        Parameters:
        modRequest - the request for modify operation
        Returns:
        the modify operation's future
        Throws:
        LdapException - in case of modify operation failure or timeout happens
      • deleteAsync

        DeleteFuture deleteAsync​(DeleteRequest delRequest)
                          throws LdapException
        Performs an asynchronous delete operation based on the delete request object.
        Parameters:
        delRequest - the delete operation's request
        Returns:
        delete operation's future
        Throws:
        LdapException - If the Dn is not valid or if the deletion failed
      • compareAsync

        CompareFuture compareAsync​(CompareRequest compareRequest)
                            throws LdapException
        Asynchronously compares an entry's attribute's value with that of the given value
        Parameters:
        compareRequest - the CompareRequest which contains the target Dn, attribute name and value
        Returns:
        compare operation's future
        Throws:
        LdapException - if some error occurred
      • extendedAsync

        ExtendedFuture extendedAsync​(ExtendedRequest extendedRequest)
                              throws LdapException
        Asynchronously requests the server to perform an extended operation based on the given request.
        Parameters:
        extendedRequest - the object containing the details of the extended operation to be performed
        Returns:
        extended operation's Future
        Throws:
        LdapException - if some error occurred