Package org.ldaptive.auth
Class AuthenticationRequest.Builder
java.lang.Object
org.ldaptive.auth.AuthenticationRequest.Builder
- Enclosing class:
- AuthenticationRequest
Authentication request builder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AuthenticationRequest
Authentication request to build. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the authentication request.controls
(RequestControl... controls) Sets the request controls.credential
(byte[] credential) Sets the user credential.credential
(char[] credential) Sets the user credential.credential
(String credential) Sets the user credential.credential
(Credential credential) Sets the user credential.Sets the user id.returnAttributes
(String... attributes) Sets the return attributes.Sets the user.
-
Field Details
-
object
Authentication request to build.
-
-
Constructor Details
-
Builder
protected Builder()Default constructor.
-
-
Method Details
-
id
Sets the user id.- Parameters:
id
- user id- Returns:
- this builder
-
credential
Sets the user credential.- Parameters:
credential
- user credential- Returns:
- this builder
-
credential
Sets the user credential.- Parameters:
credential
- user credential- Returns:
- this builder
-
credential
Sets the user credential.- Parameters:
credential
- user credential- Returns:
- this builder
-
credential
Sets the user credential.- Parameters:
credential
- user credential- Returns:
- this builder
-
user
Sets the user.- Parameters:
user
- to authenticate- Returns:
- this builder
-
returnAttributes
Sets the return attributes.- Parameters:
attributes
- return attributes- Returns:
- this builder
-
controls
Sets the request controls.- Parameters:
controls
- request controls- Returns:
- this builder
-
build
Returns the authentication request.- Returns:
- authentication request
-