Package org.ldaptive.auth
Class Authenticator.Builder
java.lang.Object
org.ldaptive.auth.Authenticator.Builder
- Enclosing class:
Authenticator
Authenticator builder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the authentication handler.build()
Returns the authenticator.dnResolver
(DnResolver resolver) Sets the DN resolver.entryResolver
(EntryResolver resolver) Sets the entry resolver.requestHandlers
(AuthenticationRequestHandler... handlers) Sets the authentication request handlers.responseHandlers
(AuthenticationResponseHandler... handlers) Sets the authentication response handlers.returnAttributes
(String... attributes) Sets the return attributes.
-
Field Details
-
object
Authenticator to build.
-
-
Constructor Details
-
Builder
protected Builder()Default constructor.
-
-
Method Details
-
dnResolver
Sets the DN resolver.- Parameters:
resolver
- DN resolver- Returns:
- this builder
-
authenticationHandler
Sets the authentication handler.- Parameters:
handler
- authentication handler- Returns:
- this builder
-
entryResolver
Sets the entry resolver.- Parameters:
resolver
- entry resolver- Returns:
- this builder
-
requestHandlers
Sets the authentication request handlers.- Parameters:
handlers
- request handlers- Returns:
- this builder
-
responseHandlers
Sets the authentication response handlers.- Parameters:
handlers
- response handlers- Returns:
- this builder
-
returnAttributes
Sets the return attributes.- Parameters:
attributes
- return attributes- Returns:
- this builder
-
build
Returns the authenticator.- Returns:
- authenticator
-