Package org.ldaptive.auth.ext
Class PasswordPolicyAuthenticationResponseHandler
java.lang.Object
org.ldaptive.auth.ext.PasswordPolicyAuthenticationResponseHandler
- All Implemented Interfaces:
AuthenticationResponseHandler
public class PasswordPolicyAuthenticationResponseHandler
extends Object
implements AuthenticationResponseHandler
Attempts to parse the authentication response message and set the account state using data associated with a password
policy control.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClockClock to convert time before expiration seconds to a datetime. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new password policy authentication response handler.Creates a new password policy authentication response handler. -
Method Summary
Modifier and TypeMethodDescriptionprivate ZonedDateTimeReturns a zoned date time for the time before expiration on the supplied control.voidhandle(AuthenticationResponse response) Handle the response from an ldap authentication.
-
Field Details
-
expirationClock
Clock to convert time before expiration seconds to a datetime.
-
-
Constructor Details
-
PasswordPolicyAuthenticationResponseHandler
public PasswordPolicyAuthenticationResponseHandler()Creates a new password policy authentication response handler. -
PasswordPolicyAuthenticationResponseHandler
PasswordPolicyAuthenticationResponseHandler(Clock clock) Creates a new password policy 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
-
getTimeBeforeExpiration
Returns a zoned date time for the time before expiration on the supplied control.- Parameters:
ppc- to inspect- Returns:
- date time or null
-