- All Known Subinterfaces:
LDAPClient
LDAP reactive operations.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A search builder is used to build complex search operations.static enum
Represents the serach scope as defined by RFC4511 Section 4.5.1.2. -
Method Summary
Modifier and TypeMethodDescriptionResolves and returns the entry identified by the specified DN.Resolves and returns the entry identified by the specified DN.Resolves and returns the entry identified by the specified DN with the specified list of attributes.Resolves and returns the entry identified by the specified DN with the specified list of attributes.Returns the DN bound to the operation.search()
Returns a builder used to build complex search operations.Executes a search operation in the specified base context using the specified filter.Executes a search operation in the specified base context using the specified filter returning the specified list of attributes.Executes a search operation in the specified base context using the specified filter and arguments returning the specified list of attributes.Executes a search operation in the specified base context using the specified filter and arguments.
-
Method Details
-
getBoundDN
Returns the DN bound to the operation.
This DN should be present when LDAP operations is backed by an authenticated connection (e.g. after a
LDAPClient.bind(String, String, java.util.function.Function)
operation).- Returns:
- an optional returning the bound DN or an empty optional if the connection is anonymous.
-
get
Resolves and returns the entry identified by the specified DN.
- Parameters:
dn
- the DN of the entry to fetch- Returns:
- a publisher of one entry or an empty publisher if no entry exists with the specified DN.
- Throws:
LDAPException
- if there was an error during the get operation
-
get
Resolves and returns the entry identified by the specified DN.
- Parameters:
dn
- an expression to use to get the DN of the user to authenticatednArgs
- the arguments to use the format the DN expression- Returns:
- a publisher of one entry or an empty publisher if no entry exists with the specified DN.
- Throws:
LDAPException
- if there was an error during the get operation
-
get
Resolves and returns the entry identified by the specified DN with the specified list of attributes.
- Parameters:
dn
- the DN of the entry to fetchattributes
- the list of attributes to query- Returns:
- a publisher of one entry or an empty publisher if no entry exists with the specified DN.
- Throws:
LDAPException
- if there was an error during the get operation
-
get
Resolves and returns the entry identified by the specified DN with the specified list of attributes.
- Parameters:
dn
- the DN of the entry to fetchattributes
- the list of attributes to querydnArgs
- the arguments to use the format the DN expression- Returns:
- a publisher of one entry or an empty publisher if no entry exists with the specified DN.
- Throws:
LDAPException
- if there was an error during the get operation
-
search
Executes a search operation in the specified base context using the specified filter.
- Parameters:
base
- the base contextfilter
- a filter- Returns:
- a publisher of entries
- Throws:
LDAPException
- if there was an error during the search operation
-
search
Executes a search operation in the specified base context using the specified filter and arguments.
- Parameters:
base
- the base contextfilter
- a filterfilterArgs
- the arguments to use to format the filter- Returns:
- a publisher of entries
- Throws:
LDAPException
- if there was an error during the search operation
-
search
Executes a search operation in the specified base context using the specified filter returning the specified list of attributes.
- Parameters:
base
- the base contextattributes
- the list of attributes to queryfilter
- a filter- Returns:
- a publisher of entries
- Throws:
LDAPException
- if there was an error during the search operation
-
search
Flux<LDAPEntry> search(String base, String[] attributes, String filter, Object... filterArgs) throws LDAPException Executes a search operation in the specified base context using the specified filter and arguments returning the specified list of attributes.
- Parameters:
base
- the base contextattributes
- the list of attributes to queryfilter
- a filterfilterArgs
- the arguments to use to format the filter- Returns:
- a publisher of entries
- Throws:
LDAPException
- if there was an error during the search operation
-
search
LDAPOperations.SearchBuilder search()Returns a builder used to build complex search operations.
- Returns:
- a search builder
-