public class PasswordPolicyResponseControl extends PasswordPolicyControl
OID
Constructor and Description |
---|
PasswordPolicyResponseControl(byte[] encodedValue)
Decodes the Ber encoded control data.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncodedValue()
Returns the unchanged value of the response control.
|
PasswordPolicyErrorStatus |
getErrorStatus() |
int |
getGraceLoginsRemaining()
Returns the graceLoginsRemaining.
|
int |
getTimeBeforeExpiration()
Returns the timeBeforeExpiration.
|
boolean |
hasError()
Checks whether an error is present.
|
boolean |
hasWarning()
Checks whether a warning is present.
|
boolean |
isChangeAfterReset() |
boolean |
isExpired() |
boolean |
isLocked()
Determines whether an account locked error has been returned.
|
boolean |
isUsingGraceLogins() |
java.lang.String |
toString()
Create a textual representation containing error and warning messages, if any are
present.
|
getID, isCritical
public PasswordPolicyResponseControl(byte[] encodedValue)
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 }
public byte[] getEncodedValue()
getEncodedValue
in interface javax.naming.ldap.Control
getEncodedValue
in class PasswordPolicyControl
public PasswordPolicyErrorStatus getErrorStatus()
public int getGraceLoginsRemaining()
public int getTimeBeforeExpiration()
public boolean hasError()
public boolean hasWarning()
public boolean isExpired()
public boolean isChangeAfterReset()
public boolean isUsingGraceLogins()
public boolean isLocked()
public java.lang.String toString()
toString
in class java.lang.Object