Package org.ldaptive.auth.ext
Class PasswordExpirationAuthenticationResponseHandler
- java.lang.Object
-
- org.ldaptive.auth.ext.PasswordExpirationAuthenticationResponseHandler
-
- All Implemented Interfaces:
AuthenticationResponseHandler
public class PasswordExpirationAuthenticationResponseHandler extends Object implements AuthenticationResponseHandler
Attempts to parse the authentication response and set the account state using data associated with the password expiring and password expired controls. See http://tools.ietf.org/html/draft-vchu-ldap-pwd-policy-00.
-
-
Field Summary
Fields Modifier and Type Field Description private Clock
expirationClock
Clock to convert time before expiration seconds to a datetime.protected Logger
logger
Logger for this class.
-
Constructor Summary
Constructors Constructor Description PasswordExpirationAuthenticationResponseHandler()
Creates a new password expiration authentication response handler.PasswordExpirationAuthenticationResponseHandler(Clock clock)
Creates a new password expiration authentication response handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(AuthenticationResponse response)
Handle the response from an ldap authentication.
-
-
-
Constructor Detail
-
PasswordExpirationAuthenticationResponseHandler
public PasswordExpirationAuthenticationResponseHandler()
Creates a new password expiration authentication response handler.
-
PasswordExpirationAuthenticationResponseHandler
PasswordExpirationAuthenticationResponseHandler(Clock clock)
Creates a new password expiration authentication response handler.- Parameters:
clock
- used to convert time before expiration to a datetime
-
-
Method Detail
-
handle
public void handle(AuthenticationResponse response)
Description copied from interface:AuthenticationResponseHandler
Handle the response from an ldap authentication.- Specified by:
handle
in interfaceAuthenticationResponseHandler
- Parameters:
response
- produced from an authentication
-
-