|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.control.AbstractControl
org.ldaptive.control.PasswordPolicyControl
public class PasswordPolicyControl
Request/response control for password policy. See http://tools.ietf.org/html/draft-behera-ldap-password-policy-10. Control is defined as:
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 }
| Nested Class Summary | |
|---|---|
static class |
PasswordPolicyControl.Error
Enum for ppolicy errors. |
| Field Summary | |
|---|---|
static String |
OID
OID of this control. |
| Fields inherited from class org.ldaptive.control.AbstractControl |
|---|
logger |
| Constructor Summary | |
|---|---|
PasswordPolicyControl()
Default constructor. |
|
PasswordPolicyControl(boolean critical)
Creates a new password policy control. |
|
| Method Summary | |
|---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data. |
byte[] |
encode()
Provides the BER encoding of this control. |
boolean |
equals(Object o)
|
PasswordPolicyControl.Error |
getError()
Returns the password policy error. |
int |
getGraceAuthNsRemaining()
Returns the number of grace authentications remaining. |
int |
getTimeBeforeExpiration()
Returns the time before expiration in seconds. |
int |
hashCode()
Returns the hash code for this object. |
void |
setError(PasswordPolicyControl.Error e)
Sets the password policy error. |
void |
setGraceAuthNsRemaining(int count)
Sets the number of grace authentications remaining. |
void |
setTimeBeforeExpiration(int time)
Sets the time before expiration in seconds. |
String |
toString()
|
| Methods inherited from class org.ldaptive.control.AbstractControl |
|---|
getCriticality, getOID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ldaptive.control.Control |
|---|
getCriticality, getOID |
| Field Detail |
|---|
public static final String OID
| Constructor Detail |
|---|
public PasswordPolicyControl()
public PasswordPolicyControl(boolean critical)
critical - whether this control is critical| Method Detail |
|---|
public int getTimeBeforeExpiration()
public void setTimeBeforeExpiration(int time)
time - before expirationpublic int getGraceAuthNsRemaining()
public void setGraceAuthNsRemaining(int count)
count - number of grace authentications remainingpublic PasswordPolicyControl.Error getError()
public void setError(PasswordPolicyControl.Error e)
e - password policy errorpublic boolean equals(Object o)
equals in class AbstractControlpublic int hashCode()
AbstractControl
hashCode in class AbstractControlpublic String toString()
toString in class Objectpublic byte[] encode()
encode in interface RequestControlpublic void decode(byte[] berValue)
decode in interface ResponseControlberValue - BER encoded response control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||