Package org.ldaptive.auth
Class AddControlAuthenticationRequestHandler
java.lang.Object
org.ldaptive.auth.AddControlAuthenticationRequestHandler
- All Implemented Interfaces:
AuthenticationRequestHandler
- Direct Known Subclasses:
PasswordPolicyAuthenticationRequestHandler
public class AddControlAuthenticationRequestHandler
extends Object
implements AuthenticationRequestHandler
Authentication request handler that adds
RequestControl
s to the AuthenticationRequest
.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AddControlAuthenticationRequestHandler.ControlFactory
Factory that produces request controls.protected final org.slf4j.Logger
Logger for this class. -
Constructor Summary
ConstructorsConstructorDescriptionAddControlAuthenticationRequestHandler
(AddControlAuthenticationRequestHandler.ControlFactory factory) Creates a new add control authentication request handler. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(String dn, AuthenticationRequest request) Handle the request for an ldap authentication.
-
Field Details
-
logger
protected final org.slf4j.Logger loggerLogger for this class. -
controlFactory
Factory that produces request controls.
-
-
Constructor Details
-
AddControlAuthenticationRequestHandler
public AddControlAuthenticationRequestHandler(AddControlAuthenticationRequestHandler.ControlFactory factory) Creates a new add control authentication request handler.- Parameters:
factory
- to produce request controls
-
-
Method Details
-
handle
Description copied from interface:AuthenticationRequestHandler
Handle the request for an ldap authentication.- Specified by:
handle
in interfaceAuthenticationRequestHandler
- Parameters:
dn
- distinguished name resolved for this requestrequest
- for this authentication event- Throws:
LdapException
- if an error occurs handling an authentication request
-