public class PasswordPolicy
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about the account password policy.
This data type is used as a response element in the GetAccountPasswordPolicy action.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
allowUsersToChangePassword
Specifies whether IAM users are allowed to change their own password.
|
private java.lang.Boolean |
expirePasswords
Indicates whether passwords in the account expire.
|
private java.lang.Boolean |
hardExpiry
Specifies whether IAM users are prevented from setting a new password
after their password has expired.
|
private java.lang.Integer |
maxPasswordAge
The number of days that an IAM user password is valid.
|
private java.lang.Integer |
minimumPasswordLength
Minimum length to require for IAM user passwords.
|
private java.lang.Integer |
passwordReusePrevention
Specifies the number of previous passwords that IAM users are prevented
from reusing.
|
private java.lang.Boolean |
requireLowercaseCharacters
Specifies whether to require lowercase characters for IAM user passwords.
|
private java.lang.Boolean |
requireNumbers
Specifies whether to require numbers for IAM user passwords.
|
private java.lang.Boolean |
requireSymbols
Specifies whether to require symbols for IAM user passwords.
|
private java.lang.Boolean |
requireUppercaseCharacters
Specifies whether to require uppercase characters for IAM user passwords.
|
Constructor and Description |
---|
PasswordPolicy() |
Modifier and Type | Method and Description |
---|---|
PasswordPolicy |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getAllowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
|
java.lang.Boolean |
getExpirePasswords()
Indicates whether passwords in the account expire.
|
java.lang.Boolean |
getHardExpiry()
Specifies whether IAM users are prevented from setting a new password
after their password has expired.
|
java.lang.Integer |
getMaxPasswordAge()
The number of days that an IAM user password is valid.
|
java.lang.Integer |
getMinimumPasswordLength()
Minimum length to require for IAM user passwords.
|
java.lang.Integer |
getPasswordReusePrevention()
Specifies the number of previous passwords that IAM users are prevented
from reusing.
|
java.lang.Boolean |
getRequireLowercaseCharacters()
Specifies whether to require lowercase characters for IAM user passwords.
|
java.lang.Boolean |
getRequireNumbers()
Specifies whether to require numbers for IAM user passwords.
|
java.lang.Boolean |
getRequireSymbols()
Specifies whether to require symbols for IAM user passwords.
|
java.lang.Boolean |
getRequireUppercaseCharacters()
Specifies whether to require uppercase characters for IAM user passwords.
|
int |
hashCode() |
java.lang.Boolean |
isAllowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
|
java.lang.Boolean |
isExpirePasswords()
Indicates whether passwords in the account expire.
|
java.lang.Boolean |
isHardExpiry()
Specifies whether IAM users are prevented from setting a new password
after their password has expired.
|
java.lang.Boolean |
isRequireLowercaseCharacters()
Specifies whether to require lowercase characters for IAM user passwords.
|
java.lang.Boolean |
isRequireNumbers()
Specifies whether to require numbers for IAM user passwords.
|
java.lang.Boolean |
isRequireSymbols()
Specifies whether to require symbols for IAM user passwords.
|
java.lang.Boolean |
isRequireUppercaseCharacters()
Specifies whether to require uppercase characters for IAM user passwords.
|
void |
setAllowUsersToChangePassword(java.lang.Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
|
void |
setExpirePasswords(java.lang.Boolean expirePasswords)
Indicates whether passwords in the account expire.
|
void |
setHardExpiry(java.lang.Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password
after their password has expired.
|
void |
setMaxPasswordAge(java.lang.Integer maxPasswordAge)
The number of days that an IAM user password is valid.
|
void |
setMinimumPasswordLength(java.lang.Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
|
void |
setPasswordReusePrevention(java.lang.Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are prevented
from reusing.
|
void |
setRequireLowercaseCharacters(java.lang.Boolean requireLowercaseCharacters)
Specifies whether to require lowercase characters for IAM user passwords.
|
void |
setRequireNumbers(java.lang.Boolean requireNumbers)
Specifies whether to require numbers for IAM user passwords.
|
void |
setRequireSymbols(java.lang.Boolean requireSymbols)
Specifies whether to require symbols for IAM user passwords.
|
void |
setRequireUppercaseCharacters(java.lang.Boolean requireUppercaseCharacters)
Specifies whether to require uppercase characters for IAM user passwords.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PasswordPolicy |
withAllowUsersToChangePassword(java.lang.Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
|
PasswordPolicy |
withExpirePasswords(java.lang.Boolean expirePasswords)
Indicates whether passwords in the account expire.
|
PasswordPolicy |
withHardExpiry(java.lang.Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password
after their password has expired.
|
PasswordPolicy |
withMaxPasswordAge(java.lang.Integer maxPasswordAge)
The number of days that an IAM user password is valid.
|
PasswordPolicy |
withMinimumPasswordLength(java.lang.Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
|
PasswordPolicy |
withPasswordReusePrevention(java.lang.Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are prevented
from reusing.
|
PasswordPolicy |
withRequireLowercaseCharacters(java.lang.Boolean requireLowercaseCharacters)
Specifies whether to require lowercase characters for IAM user passwords.
|
PasswordPolicy |
withRequireNumbers(java.lang.Boolean requireNumbers)
Specifies whether to require numbers for IAM user passwords.
|
PasswordPolicy |
withRequireSymbols(java.lang.Boolean requireSymbols)
Specifies whether to require symbols for IAM user passwords.
|
PasswordPolicy |
withRequireUppercaseCharacters(java.lang.Boolean requireUppercaseCharacters)
Specifies whether to require uppercase characters for IAM user passwords.
|
private java.lang.Integer minimumPasswordLength
Minimum length to require for IAM user passwords.
private java.lang.Boolean requireSymbols
Specifies whether to require symbols for IAM user passwords.
private java.lang.Boolean requireNumbers
Specifies whether to require numbers for IAM user passwords.
private java.lang.Boolean requireUppercaseCharacters
Specifies whether to require uppercase characters for IAM user passwords.
private java.lang.Boolean requireLowercaseCharacters
Specifies whether to require lowercase characters for IAM user passwords.
private java.lang.Boolean allowUsersToChangePassword
Specifies whether IAM users are allowed to change their own password.
private java.lang.Boolean expirePasswords
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
private java.lang.Integer maxPasswordAge
The number of days that an IAM user password is valid.
private java.lang.Integer passwordReusePrevention
Specifies the number of previous passwords that IAM users are prevented from reusing.
private java.lang.Boolean hardExpiry
Specifies whether IAM users are prevented from setting a new password after their password has expired.
public void setMinimumPasswordLength(java.lang.Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
minimumPasswordLength
- Minimum length to require for IAM user passwords.public java.lang.Integer getMinimumPasswordLength()
Minimum length to require for IAM user passwords.
public PasswordPolicy withMinimumPasswordLength(java.lang.Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
minimumPasswordLength
- Minimum length to require for IAM user passwords.public void setRequireSymbols(java.lang.Boolean requireSymbols)
Specifies whether to require symbols for IAM user passwords.
requireSymbols
- Specifies whether to require symbols for IAM user passwords.public java.lang.Boolean getRequireSymbols()
Specifies whether to require symbols for IAM user passwords.
public PasswordPolicy withRequireSymbols(java.lang.Boolean requireSymbols)
Specifies whether to require symbols for IAM user passwords.
requireSymbols
- Specifies whether to require symbols for IAM user passwords.public java.lang.Boolean isRequireSymbols()
Specifies whether to require symbols for IAM user passwords.
public void setRequireNumbers(java.lang.Boolean requireNumbers)
Specifies whether to require numbers for IAM user passwords.
requireNumbers
- Specifies whether to require numbers for IAM user passwords.public java.lang.Boolean getRequireNumbers()
Specifies whether to require numbers for IAM user passwords.
public PasswordPolicy withRequireNumbers(java.lang.Boolean requireNumbers)
Specifies whether to require numbers for IAM user passwords.
requireNumbers
- Specifies whether to require numbers for IAM user passwords.public java.lang.Boolean isRequireNumbers()
Specifies whether to require numbers for IAM user passwords.
public void setRequireUppercaseCharacters(java.lang.Boolean requireUppercaseCharacters)
Specifies whether to require uppercase characters for IAM user passwords.
requireUppercaseCharacters
- Specifies whether to require uppercase characters for IAM user
passwords.public java.lang.Boolean getRequireUppercaseCharacters()
Specifies whether to require uppercase characters for IAM user passwords.
public PasswordPolicy withRequireUppercaseCharacters(java.lang.Boolean requireUppercaseCharacters)
Specifies whether to require uppercase characters for IAM user passwords.
requireUppercaseCharacters
- Specifies whether to require uppercase characters for IAM user
passwords.public java.lang.Boolean isRequireUppercaseCharacters()
Specifies whether to require uppercase characters for IAM user passwords.
public void setRequireLowercaseCharacters(java.lang.Boolean requireLowercaseCharacters)
Specifies whether to require lowercase characters for IAM user passwords.
requireLowercaseCharacters
- Specifies whether to require lowercase characters for IAM user
passwords.public java.lang.Boolean getRequireLowercaseCharacters()
Specifies whether to require lowercase characters for IAM user passwords.
public PasswordPolicy withRequireLowercaseCharacters(java.lang.Boolean requireLowercaseCharacters)
Specifies whether to require lowercase characters for IAM user passwords.
requireLowercaseCharacters
- Specifies whether to require lowercase characters for IAM user
passwords.public java.lang.Boolean isRequireLowercaseCharacters()
Specifies whether to require lowercase characters for IAM user passwords.
public void setAllowUsersToChangePassword(java.lang.Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
allowUsersToChangePassword
- Specifies whether IAM users are allowed to change their own
password.public java.lang.Boolean getAllowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
public PasswordPolicy withAllowUsersToChangePassword(java.lang.Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
allowUsersToChangePassword
- Specifies whether IAM users are allowed to change their own
password.public java.lang.Boolean isAllowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
public void setExpirePasswords(java.lang.Boolean expirePasswords)
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
expirePasswords
- Indicates whether passwords in the account expire. Returns true if
MaxPasswordAge is contains a value greater than 0. Returns false
if MaxPasswordAge is 0 or not present.public java.lang.Boolean getExpirePasswords()
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
public PasswordPolicy withExpirePasswords(java.lang.Boolean expirePasswords)
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
expirePasswords
- Indicates whether passwords in the account expire. Returns true if
MaxPasswordAge is contains a value greater than 0. Returns false
if MaxPasswordAge is 0 or not present.public java.lang.Boolean isExpirePasswords()
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
public void setMaxPasswordAge(java.lang.Integer maxPasswordAge)
The number of days that an IAM user password is valid.
maxPasswordAge
- The number of days that an IAM user password is valid.public java.lang.Integer getMaxPasswordAge()
The number of days that an IAM user password is valid.
public PasswordPolicy withMaxPasswordAge(java.lang.Integer maxPasswordAge)
The number of days that an IAM user password is valid.
maxPasswordAge
- The number of days that an IAM user password is valid.public void setPasswordReusePrevention(java.lang.Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are prevented from reusing.
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are
prevented from reusing.public java.lang.Integer getPasswordReusePrevention()
Specifies the number of previous passwords that IAM users are prevented from reusing.
public PasswordPolicy withPasswordReusePrevention(java.lang.Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are prevented from reusing.
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are
prevented from reusing.public void setHardExpiry(java.lang.Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password after their password has expired.
hardExpiry
- Specifies whether IAM users are prevented from setting a new
password after their password has expired.public java.lang.Boolean getHardExpiry()
Specifies whether IAM users are prevented from setting a new password after their password has expired.
public PasswordPolicy withHardExpiry(java.lang.Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password after their password has expired.
hardExpiry
- Specifies whether IAM users are prevented from setting a new
password after their password has expired.public java.lang.Boolean isHardExpiry()
Specifies whether IAM users are prevented from setting a new password after their password has expired.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PasswordPolicy clone()
clone
in class java.lang.Object