public interface PasswordPolicyResponse extends Control
PasswordPolicyResponseValue ::= SEQUENCE { warning [0] CHOICE { timeBeforeExpiration [0] INTEGER (0 .. maxInt), graceAuthNsRemaining [1] INTEGER (0 .. maxInt) } OPTIONAL, error [1] ENUMERATED { passwordExpired (0), accountLocked (1), changeAfterReset (2), passwordModNotAllowed (3), mustSupplyOldPassword (4), insufficientPasswordQuality (5), passwordTooShort (6), passwordTooYoung (7), passwordInHistory (8) } OPTIONAL } }
Modifier and Type | Field and Description |
---|---|
static String |
OID
the password policy response control
|
Modifier and Type | Method and Description |
---|---|
int |
getGraceAuthNRemaining()
Returns the number of possible attempts on the password before it's
locked.
|
PasswordPolicyErrorEnum |
getPasswordPolicyError()
Returns the password policy error.
|
int |
getTimeBeforeExpiration()
Returns the time before expiration.
|
void |
setGraceAuthNRemaining(int graceAuthNRemaining)
Sets the number of remaining wrong authentication for this password.
|
void |
setPasswordPolicyError(PasswordPolicyErrorEnum ppolicyError)
Sets the PasswordPolicy error.
|
void |
setTimeBeforeExpiration(int timeBeforeExpiration)
Set a date of expiration for the password.
|
getOid, isCritical, setCritical
static final String OID
int getTimeBeforeExpiration()
void setTimeBeforeExpiration(int timeBeforeExpiration)
timeBeforeExpiration
- The time before the password will expireint getGraceAuthNRemaining()
void setGraceAuthNRemaining(int graceAuthNRemaining)
graceAuthNRemaining
- The number of remaining attemptsPasswordPolicyErrorEnum getPasswordPolicyError()
void setPasswordPolicyError(PasswordPolicyErrorEnum ppolicyError)
ppolicyError
- The PasswordPolicyErrorEnum representing the errorCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.