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 -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new password expiration authentication response handler.Creates a new password expiration authentication response handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(AuthenticationResponse response) Handle the response from an ldap authentication.
-
Field Details
-
logger
Logger for this class. -
expirationClock
Clock to convert time before expiration seconds to a datetime.
-
-
Constructor Details
-
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 Details
-
handle
Description copied from interface:AuthenticationResponseHandlerHandle the response from an ldap authentication.- Specified by:
handlein interfaceAuthenticationResponseHandler- Parameters:
response- produced from an authentication
-