public class PasswordPolicyConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
pwdAllowUserChange
indicates whether users can change their own passwords.
|
private java.lang.String |
pwdAttribute
The name of the attribute to which the password policy is applied.
|
private CheckQualityEnum |
pwdCheckQuality
indicates how the password quality will be verified while being modified or added.
|
private int |
pwdExpireWarning
the maximum number of seconds before a password is due to expire that expiration warning
messages will be returned to an authenticating user.
|
private int |
pwdFailureCountInterval
the number of seconds after which the password failures are purged from the failure counter.
|
private int |
pwdGraceAuthNLimit
the number of times an expired password can be used to authenticate.
|
private int |
pwdGraceExpire
specifies the number of seconds the grace authentications are valid
Default value is 0, no limit.
|
private int |
pwdInHistory
specifies the maximum number of used passwords stored in the pwdHistory attribute.
|
private boolean |
pwdLockout
flag to indicate if the account needs to be locked after a specified number of
consecutive failed bind attempts.
|
private int |
pwdLockoutDuration
the number of seconds that the password cannot be used to authenticate due to
too many failed bind attempts.
|
private int |
pwdMaxAge
holds the number of seconds after which a modified password will expire.
|
private int |
pwdMaxDelay
the maximum number of seconds to delay when responding to a failed authentication attempt.
|
private int |
pwdMaxFailure
the number of consecutive failed bind attempts after which the password may not
be used to authenticate.
|
private int |
pwdMaxIdle
the number of seconds an account may remain unused before it becomes locked
Default value is 0, no check for idle time.
|
private int |
pwdMaxLength
this attribute holds the maximum number of characters that may be used in a password.
|
private int |
pwdMinAge
holds the number of seconds that must elapse between modifications to the password.
|
private int |
pwdMinDelay
the number of seconds to delay responding to the first failed authentication attempt
Default value 0, no delay.
|
private int |
pwdMinLength
this attribute holds the minimum number of characters that must be used in a password.
|
private boolean |
pwdMustChange
flag to indicate if the password must be changed by the user after they bind to the
directory after a password is set or reset by a password administrator.
|
private boolean |
pwdSafeModify
flag to specify whether or not the existing password must be sent along with the
new password when being changed.
|
private PasswordValidator |
pwdValidator
validator used for checking the quality of password
|
| Constructor and Description |
|---|
PasswordPolicyConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPwdAttribute() |
CheckQualityEnum |
getPwdCheckQuality() |
int |
getPwdExpireWarning() |
int |
getPwdFailureCountInterval() |
int |
getPwdGraceAuthNLimit() |
int |
getPwdGraceExpire() |
int |
getPwdInHistory() |
int |
getPwdLockoutDuration() |
int |
getPwdMaxAge() |
int |
getPwdMaxDelay() |
int |
getPwdMaxFailure() |
int |
getPwdMaxIdle() |
int |
getPwdMaxLength() |
int |
getPwdMinAge() |
int |
getPwdMinDelay() |
int |
getPwdMinLength() |
PasswordValidator |
getPwdValidator() |
boolean |
isPwdAllowUserChange() |
boolean |
isPwdLockout() |
boolean |
isPwdMustChange() |
boolean |
isPwdSafeModify() |
void |
setPwdAllowUserChange(boolean pwdAllowUserChange) |
void |
setPwdAttribute(java.lang.String pwdAttribute)
Set the name of the attribute storing the password
|
void |
setPwdCheckQuality(CheckQualityEnum pwdCheckQuality) |
void |
setPwdExpireWarning(int pwdExpireWarning) |
void |
setPwdFailureCountInterval(int pwdFailureCountInterval) |
void |
setPwdGraceAuthNLimit(int pwdGraceAuthNLimit) |
void |
setPwdGraceExpire(int pwdGraceExpire) |
void |
setPwdInHistory(int pwdInHistory) |
void |
setPwdLockout(boolean pwdLockout) |
void |
setPwdLockoutDuration(int pwdLockoutDuration) |
void |
setPwdMaxAge(int pwdMaxAge) |
void |
setPwdMaxDelay(int pwdMaxDelay) |
void |
setPwdMaxFailure(int pwdMaxFailure) |
void |
setPwdMaxIdle(int pwdMaxIdle) |
void |
setPwdMaxLength(int pwdMaxLength) |
void |
setPwdMinAge(int pwdMinAge) |
void |
setPwdMinDelay(int pwdMinDelay) |
void |
setPwdMinLength(int pwdMinLength) |
void |
setPwdMustChange(boolean pwdMustChange) |
void |
setPwdSafeModify(boolean pwdSafeModify) |
void |
setPwdValidator(PasswordValidator pwdValidator) |
void |
validate()
validates the policy configuration and throws a LdapException if there are any errors
|
private java.lang.String pwdAttribute
private int pwdMinAge
private int pwdMaxAge
private int pwdInHistory
private CheckQualityEnum pwdCheckQuality
private int pwdMinLength
private int pwdMaxLength
private int pwdExpireWarning
private int pwdGraceAuthNLimit
private int pwdGraceExpire
private boolean pwdLockout
pwdMaxFailureprivate int pwdLockoutDuration
private int pwdMaxFailure
private int pwdFailureCountInterval
private boolean pwdMustChange
private boolean pwdAllowUserChange
private boolean pwdSafeModify
private int pwdMinDelay
private int pwdMaxDelay
private int pwdMaxIdle
private PasswordValidator pwdValidator
public java.lang.String getPwdAttribute()
public void setPwdAttribute(java.lang.String pwdAttribute)
pwdAttribute - The attribute's namepublic int getPwdMinAge()
public void setPwdMinAge(int pwdMinAge)
public int getPwdMaxAge()
public void setPwdMaxAge(int pwdMaxAge)
public int getPwdInHistory()
public void setPwdInHistory(int pwdInHistory)
public CheckQualityEnum getPwdCheckQuality()
public void setPwdCheckQuality(CheckQualityEnum pwdCheckQuality)
public int getPwdMinLength()
public void setPwdMinLength(int pwdMinLength)
public int getPwdMaxLength()
public void setPwdMaxLength(int pwdMaxLength)
public int getPwdExpireWarning()
public void setPwdExpireWarning(int pwdExpireWarning)
public int getPwdGraceAuthNLimit()
public void setPwdGraceAuthNLimit(int pwdGraceAuthNLimit)
public int getPwdGraceExpire()
public void setPwdGraceExpire(int pwdGraceExpire)
public boolean isPwdLockout()
public void setPwdLockout(boolean pwdLockout)
public int getPwdLockoutDuration()
public void setPwdLockoutDuration(int pwdLockoutDuration)
public int getPwdMaxFailure()
public void setPwdMaxFailure(int pwdMaxFailure)
public int getPwdFailureCountInterval()
public void setPwdFailureCountInterval(int pwdFailureCountInterval)
public boolean isPwdMustChange()
public void setPwdMustChange(boolean pwdMustChange)
public boolean isPwdAllowUserChange()
public void setPwdAllowUserChange(boolean pwdAllowUserChange)
public boolean isPwdSafeModify()
public void setPwdSafeModify(boolean pwdSafeModify)
public int getPwdMinDelay()
public void setPwdMinDelay(int pwdMinDelay)
public int getPwdMaxDelay()
public void setPwdMaxDelay(int pwdMaxDelay)
public int getPwdMaxIdle()
public void setPwdMaxIdle(int pwdMaxIdle)
public PasswordValidator getPwdValidator()
public void setPwdValidator(PasswordValidator pwdValidator)
pwdValidator - the pwdValidator to setpublic void validate()
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException - if there are any errors in the configuration