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 addsRequestControl
s to theAuthenticationRequest
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AddControlAuthenticationRequestHandler.ControlFactory
Factory that producesRequestControl
s.
-
Field Summary
Fields Modifier and Type Field Description private AddControlAuthenticationRequestHandler.ControlFactory
controlFactory
Factory that produces request controls.protected Logger
logger
Logger for this class.
-
Constructor Summary
Constructors Constructor Description AddControlAuthenticationRequestHandler(AddControlAuthenticationRequestHandler.ControlFactory factory)
Creates a new add control authentication request handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(String dn, AuthenticationRequest request)
Handle the request for an ldap authentication.
-
-
-
Field Detail
-
logger
protected final Logger logger
Logger for this class.
-
controlFactory
private final AddControlAuthenticationRequestHandler.ControlFactory controlFactory
Factory that produces request controls.
-
-
Constructor Detail
-
AddControlAuthenticationRequestHandler
public AddControlAuthenticationRequestHandler(AddControlAuthenticationRequestHandler.ControlFactory factory)
Creates a new add control authentication request handler.- Parameters:
factory
- to produce request controls
-
-
Method Detail
-
handle
public void handle(String dn, AuthenticationRequest request) throws LdapException
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
-
-