public class EDirectoryAuthenticationResponseHandler extends Object implements AuthenticationResponseHandler
Authenticator
should be configured to return 'passwordExpirationTime' and
'loginGraceRemaining' attributes so they can be consumed by this handler. If this handler is assigned a warningPeriod
, this handler will only emit warnings during that window before password expiration. Otherwise,
a warning is always emitted if passwordExpirationTime is set.Modifier and Type | Field and Description |
---|---|
static String[] |
ATTRIBUTES
Attributes needed to enforce password policy.
|
private Period |
warningPeriod
Amount of time before expiration to produce a warning.
|
Constructor and Description |
---|
EDirectoryAuthenticationResponseHandler()
Default constructor.
|
EDirectoryAuthenticationResponseHandler(Period warning)
Creates a new edirectory authentication response handler.
|
Modifier and Type | Method and Description |
---|---|
Period |
getWarningPeriod()
Returns the amount of time before expiration to produce a warning.
|
void |
handle(AuthenticationResponse response)
Handle the response from an ldap authentication.
|
void |
setWarningPeriod(Period period)
Sets the amount of time before expiration to produce a warning.
|
String |
toString() |
public static final String[] ATTRIBUTES
private Period warningPeriod
public EDirectoryAuthenticationResponseHandler()
public EDirectoryAuthenticationResponseHandler(Period warning)
warning
- length of time before expiration that should produce a warningpublic void handle(AuthenticationResponse response)
AuthenticationResponseHandler
handle
in interface AuthenticationResponseHandler
response
- produced from an authenticationpublic Period getWarningPeriod()
public void setWarningPeriod(Period period)
period
- warning periodCopyright © 2003-2019 Virginia Tech. All Rights Reserved.