Package org.ldaptive.auth
Class Authenticator.Builder
- java.lang.Object
-
- org.ldaptive.auth.Authenticator.Builder
-
- Enclosing class:
- Authenticator
public static final class Authenticator.Builder extends Object
Authenticator builder.
-
-
Field Summary
Fields Modifier and Type Field Description private AuthenticatorobjectAuthenticator to build.
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authenticator.BuilderauthenticationHandler(AuthenticationHandler handler)Sets the authentication handler.Authenticatorbuild()Returns the authenticator.Authenticator.BuilderdnResolver(DnResolver resolver)Sets the DN resolver.Authenticator.BuilderentryResolver(EntryResolver resolver)Sets the entry resolver.Authenticator.Builderfreeze()Makes this instance immutable.Authenticator.BuilderrequestHandlers(AuthenticationRequestHandler... handlers)Sets the authentication request handlers.Authenticator.BuilderresponseHandlers(AuthenticationResponseHandler... handlers)Sets the authentication response handlers.Authenticator.BuilderreturnAttributes(String... attributes)Sets the return attributes.
-
-
-
Field Detail
-
object
private final Authenticator object
Authenticator to build.
-
-
Method Detail
-
freeze
public Authenticator.Builder freeze()
Makes this instance immutable.- Returns:
- this builder
-
dnResolver
public Authenticator.Builder dnResolver(DnResolver resolver)
Sets the DN resolver.- Parameters:
resolver- DN resolver- Returns:
- this builder
-
authenticationHandler
public Authenticator.Builder authenticationHandler(AuthenticationHandler handler)
Sets the authentication handler.- Parameters:
handler- authentication handler- Returns:
- this builder
-
entryResolver
public Authenticator.Builder entryResolver(EntryResolver resolver)
Sets the entry resolver.- Parameters:
resolver- entry resolver- Returns:
- this builder
-
requestHandlers
public Authenticator.Builder requestHandlers(AuthenticationRequestHandler... handlers)
Sets the authentication request handlers.- Parameters:
handlers- request handlers- Returns:
- this builder
-
responseHandlers
public Authenticator.Builder responseHandlers(AuthenticationResponseHandler... handlers)
Sets the authentication response handlers.- Parameters:
handlers- response handlers- Returns:
- this builder
-
returnAttributes
public Authenticator.Builder returnAttributes(String... attributes)
Sets the return attributes.- Parameters:
attributes- return attributes- Returns:
- this builder
-
build
public Authenticator build()
Returns the authenticator.- Returns:
- authenticator
-
-