public class PasswordPolicyResponseImpl extends Object implements PasswordPolicyResponse
Constructor and Description |
---|
PasswordPolicyResponseImpl() |
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() |
public PasswordPolicyResponseImpl()
public int getTimeBeforeExpiration()
getTimeBeforeExpiration
in interface PasswordPolicyResponse
public void setTimeBeforeExpiration(int timeBeforeExpiration)
setTimeBeforeExpiration
in interface PasswordPolicyResponse
timeBeforeExpiration
- The time before the password will expirepublic int getGraceAuthNRemaining()
getGraceAuthNRemaining
in interface PasswordPolicyResponse
public void setGraceAuthNRemaining(int graceAuthNRemaining)
setGraceAuthNRemaining
in interface PasswordPolicyResponse
graceAuthNRemaining
- The number of remaining attemptspublic PasswordPolicyErrorEnum getPasswordPolicyError()
getPasswordPolicyError
in interface PasswordPolicyResponse
public void setPasswordPolicyError(PasswordPolicyErrorEnum ppolicyError)
setPasswordPolicyError
in interface PasswordPolicyResponse
ppolicyError
- The PasswordPolicyErrorEnum representing the errorCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.