|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.ldap.ppolicy.PasswordPolicyControl org.springframework.security.ldap.ppolicy.PasswordPolicyResponseControl
public class PasswordPolicyResponseControl
Represents the response control received when a PasswordPolicyControl is used when binding to a directory. Currently tested with the OpenLDAP 2.3.19 implementation of the LDAP Password Policy Draft. It extends the request control with the control specific data. This is accomplished by the properties timeBeforeExpiration, graceLoginsRemaining.
PasswordPolicyControl
,
Stefan Zoerner's IBM developerworks
article on LDAP controls.,
Serialized FormField Summary |
---|
Fields inherited from class org.springframework.security.ldap.ppolicy.PasswordPolicyControl |
---|
OID |
Fields inherited from interface javax.naming.ldap.Control |
---|
CRITICAL, NONCRITICAL |
Constructor Summary | |
---|---|
PasswordPolicyResponseControl(byte[] encodedValue)
Decodes the Ber encoded control data. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.security.ldap.ppolicy.PasswordPolicyControl |
---|
getID, isCritical |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 }
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |