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 addsRequestControls to theAuthenticationRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAddControlAuthenticationRequestHandler.ControlFactoryFactory that producesRequestControls.
-
Field Summary
Fields Modifier and Type Field Description private AddControlAuthenticationRequestHandler.ControlFactorycontrolFactoryFactory that produces request controls.protected LoggerloggerLogger 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 voidhandle(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:AuthenticationRequestHandlerHandle the request for an ldap authentication.- Specified by:
handlein interfaceAuthenticationRequestHandler- Parameters:
dn- distinguished name resolved for this requestrequest- for this authentication event- Throws:
LdapException- if an error occurs handling an authentication request
-
-