Class PasswordWarningImpl
- java.lang.Object
-
- org.apache.directory.ldap.client.template.PasswordWarningImpl
-
- All Implemented Interfaces:
Serializable,PasswordWarning
final class PasswordWarningImpl extends Object implements PasswordWarning
The default implementation ofPasswordWarning.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGraceAuthNsRemaining()Returns the number of remaining authentications before the account will be locked.intgetTimeBeforeExpiration()Returns the number of seconds before the password will expire.booleanisChangeAfterReset()Returns true, if a password reset is required.(package private) static PasswordWarningnewWarning(PasswordPolicyResponse response)
-
-
-
Method Detail
-
newWarning
static PasswordWarning newWarning(PasswordPolicyResponse response)
-
getTimeBeforeExpiration
public int getTimeBeforeExpiration()
Returns the number of seconds before the password will expire.- Specified by:
getTimeBeforeExpirationin interfacePasswordWarning- Returns:
- The number of seconds before the password will expire
-
getGraceAuthNsRemaining
public int getGraceAuthNsRemaining()
Returns the number of remaining authentications before the account will be locked.- Specified by:
getGraceAuthNsRemainingin interfacePasswordWarning- Returns:
- The number of authentications before lockout
-
isChangeAfterReset
public boolean isChangeAfterReset()
Returns true, if a password reset is required.- Specified by:
isChangeAfterResetin interfacePasswordWarning- Returns:
- True, if a password reset is required
-
-