public class PasswordPolicyResponseImpl extends org.apache.directory.api.ldap.model.message.controls.AbstractControl implements PasswordPolicyResponse
| Modifier and Type | Field and Description |
|---|---|
private int |
graceAuthNRemaining
number of remaining grace authentications
|
private PasswordPolicyErrorEnum |
ppolicyError
number representing the password policy error
|
private int |
timeBeforeExpiration
time before expiration of the password
|
OID| Constructor and Description |
|---|
PasswordPolicyResponseImpl()
Creates a new instance of a PasswordPolicy 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.
|
String |
toString() |
equals, getOid, hashCode, isCritical, setCriticalprivate int timeBeforeExpiration
private int graceAuthNRemaining
private PasswordPolicyErrorEnum ppolicyError
public PasswordPolicyResponseImpl()
public int getTimeBeforeExpiration()
getTimeBeforeExpiration in interface PasswordPolicyResponsepublic void setTimeBeforeExpiration(int timeBeforeExpiration)
setTimeBeforeExpiration in interface PasswordPolicyResponsetimeBeforeExpiration - The time before the password will expirepublic int getGraceAuthNRemaining()
getGraceAuthNRemaining in interface PasswordPolicyResponsepublic void setGraceAuthNRemaining(int graceAuthNRemaining)
setGraceAuthNRemaining in interface PasswordPolicyResponsegraceAuthNRemaining - The number of remaining attemptspublic PasswordPolicyErrorEnum getPasswordPolicyError()
getPasswordPolicyError in interface PasswordPolicyResponsepublic void setPasswordPolicyError(PasswordPolicyErrorEnum ppolicyError)
setPasswordPolicyError in interface PasswordPolicyResponseppolicyError - The PasswordPolicyErrorEnum representing the errorpublic String toString()
toString in class org.apache.directory.api.ldap.model.message.controls.AbstractControlCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.