Interface LdapClient
- Since:
- 3.1
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The specifications for theauthenticate()
request.static interface
The specifications for thebind(java.lang.String)
request.static interface
A mutable builder for creating anLdapClient
.static interface
The specifications for thelistBindings(java.lang.String)
request.static interface
The specifications for thelist(java.lang.String)
request.static interface
The specifications for themodify(java.lang.String)
request.static interface
The specifications for thesearch()
request.static interface
The specifications for theunbind(java.lang.String)
request. -
Method Summary
Modifier and TypeMethodDescriptionStart building an authentication request.Start building a bind request, using the givenname
as the identifier.Start building a bind or rebind request, using the givenname
as the identifier.static LdapClient.Builder
builder()
Obtain aLdapClient
builder.static LdapClient
create
(ContextSource contextSource) Create an instance ofLdapClient
Start building a request for all children of the givenname
.Start building a request for all children of the givenname
.listBindings
(String name) Start building a request for all children of the givenname
.listBindings
(Name name) Start building a request for all children of the givenname
.Start building a request to modify name or attributes of an entry, using the givenname
as the identifier.Start building a request to modify name or attributes of an entry, using the givenname
as the identifier.mutate()
Return a builder to create a newLdapClient
whose settings are replicated from the currentLdapClient
.search()
Start building a search request.Start building a request to remove thename
entry.Start building a request to remove thename
entry.
-
Method Details
-
list
Start building a request for all children of the givenname
.- Parameters:
name
- the distinguished name to find children for- Returns:
- a spec for specifying the list parameters
-
list
Start building a request for all children of the givenname
.- Parameters:
name
- the distinguished name to find children for- Returns:
- a spec for specifying the list parameters
-
listBindings
Start building a request for all children of the givenname
. The result will include the object bound to the name.- Parameters:
name
- the distinguished name to find children for- Returns:
- a spec for specifying the list parameters
-
listBindings
Start building a request for all children of the givenname
. The result will include the object bound to the name.- Parameters:
name
- the distinguished name to find children for- Returns:
- a spec for specifying the list parameters
-
search
LdapClient.SearchSpec search()Start building a search request.- Returns:
- a spec for specifying the search parameters
-
authenticate
LdapClient.AuthenticateSpec authenticate()Start building an authentication request.- Returns:
- a spec for specifying the authentication parameters
-
bind
Start building a bind request, using the givenname
as the identifier.- Returns:
- a spec for specifying the bind parameters
-
bind
Start building a bind or rebind request, using the givenname
as the identifier.- Returns:
- a spec for specifying the bind parameters
-
modify
Start building a request to modify name or attributes of an entry, using the givenname
as the identifier.Note that a
modify(Name)
is different from a rebind in that entries are changed instead of removed and recreated.A change in name uses LDAP's
Context.rename(javax.naming.Name, javax.naming.Name)
function. A change in attributes uses LDAP'sDirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes)
function. Therename
action is optimistically performed before themodify
function. A rollback of the name is attempted in the event that attribute modification fails.- Parameters:
name
- the name of the entry to modify- Returns:
- a spec for specifying the modify parameters
-
modify
Start building a request to modify name or attributes of an entry, using the givenname
as the identifier.Note that a
modify(Name)
is different from a rebind in that entries are changed instead of removed and recreated.A change in name uses LDAP's
Context.rename(javax.naming.Name, javax.naming.Name)
function. A change in attributes uses LDAP'sDirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes)
function. Therename
action is optimistically performed before themodify
function. A rollback of the name is attempted in the event that attribute modification fails.- Parameters:
name
- the name of the entry to modify- Returns:
- a spec for specifying the modify parameters
-
unbind
Start building a request to remove thename
entry.- Parameters:
name
- the name of the entry to remove- Returns:
- a spec for specifying the unbind parameters
-
unbind
Start building a request to remove thename
entry.- Parameters:
name
- the name of the entry to remove- Returns:
- a spec for specifying the unbind parameters
-
mutate
LdapClient.Builder mutate()Return a builder to create a newLdapClient
whose settings are replicated from the currentLdapClient
. -
create
Create an instance ofLdapClient
- Parameters:
contextSource
- theContextSource
for all requests- See Also:
-
builder
Obtain aLdapClient
builder.
-