public class PasswordPolicy extends Object implements Serializable
The PasswordPolicy data type contains information about the account password policy.
This data type is used as a response element in the action GetAccountPasswordPolicy.
Constructor and Description |
---|
PasswordPolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getAllowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
|
Boolean |
getExpirePasswords()
Specifies whether IAM users are required to change their password
after a specified number of days.
|
Boolean |
getHardExpiry()
Specifies whether IAM users are prevented from setting a new password
after their password has expired.
|
Integer |
getMaxPasswordAge()
The number of days that an IAM user password is valid.
|
Integer |
getMinimumPasswordLength()
Minimum length to require for IAM user passwords.
|
Integer |
getPasswordReusePrevention()
Specifies the number of previous passwords that IAM users are
prevented from reusing.
|
Boolean |
getRequireLowercaseCharacters()
Specifies whether to require lowercase characters for IAM user
passwords.
|
Boolean |
getRequireNumbers()
Specifies whether to require numbers for IAM user passwords.
|
Boolean |
getRequireSymbols()
Specifies whether to require symbols for IAM user passwords.
|
Boolean |
getRequireUppercaseCharacters()
Specifies whether to require uppercase characters for IAM user
passwords.
|
int |
hashCode() |
Boolean |
isAllowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
|
Boolean |
isExpirePasswords()
Specifies whether IAM users are required to change their password
after a specified number of days.
|
Boolean |
isHardExpiry()
Specifies whether IAM users are prevented from setting a new password
after their password has expired.
|
Boolean |
isRequireLowercaseCharacters()
Specifies whether to require lowercase characters for IAM user
passwords.
|
Boolean |
isRequireNumbers()
Specifies whether to require numbers for IAM user passwords.
|
Boolean |
isRequireSymbols()
Specifies whether to require symbols for IAM user passwords.
|
Boolean |
isRequireUppercaseCharacters()
Specifies whether to require uppercase characters for IAM user
passwords.
|
void |
setAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
|
void |
setExpirePasswords(Boolean expirePasswords)
Specifies whether IAM users are required to change their password
after a specified number of days.
|
void |
setHardExpiry(Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password
after their password has expired.
|
void |
setMaxPasswordAge(Integer maxPasswordAge)
The number of days that an IAM user password is valid.
|
void |
setMinimumPasswordLength(Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
|
void |
setPasswordReusePrevention(Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are
prevented from reusing.
|
void |
setRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Specifies whether to require lowercase characters for IAM user
passwords.
|
void |
setRequireNumbers(Boolean requireNumbers)
Specifies whether to require numbers for IAM user passwords.
|
void |
setRequireSymbols(Boolean requireSymbols)
Specifies whether to require symbols for IAM user passwords.
|
void |
setRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Specifies whether to require uppercase characters for IAM user
passwords.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PasswordPolicy |
withAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
|
PasswordPolicy |
withExpirePasswords(Boolean expirePasswords)
Specifies whether IAM users are required to change their password
after a specified number of days.
|
PasswordPolicy |
withHardExpiry(Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password
after their password has expired.
|
PasswordPolicy |
withMaxPasswordAge(Integer maxPasswordAge)
The number of days that an IAM user password is valid.
|
PasswordPolicy |
withMinimumPasswordLength(Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
|
PasswordPolicy |
withPasswordReusePrevention(Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are
prevented from reusing.
|
PasswordPolicy |
withRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Specifies whether to require lowercase characters for IAM user
passwords.
|
PasswordPolicy |
withRequireNumbers(Boolean requireNumbers)
Specifies whether to require numbers for IAM user passwords.
|
PasswordPolicy |
withRequireSymbols(Boolean requireSymbols)
Specifies whether to require symbols for IAM user passwords.
|
PasswordPolicy |
withRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Specifies whether to require uppercase characters for IAM user
passwords.
|
public Integer getMinimumPasswordLength()
Constraints:
Range: 6 - 128
public void setMinimumPasswordLength(Integer minimumPasswordLength)
Constraints:
Range: 6 - 128
minimumPasswordLength
- Minimum length to require for IAM user passwords.public PasswordPolicy withMinimumPasswordLength(Integer minimumPasswordLength)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 6 - 128
minimumPasswordLength
- Minimum length to require for IAM user passwords.public Boolean isRequireSymbols()
public void setRequireSymbols(Boolean requireSymbols)
requireSymbols
- Specifies whether to require symbols for IAM user passwords.public PasswordPolicy withRequireSymbols(Boolean requireSymbols)
Returns a reference to this object so that method calls can be chained together.
requireSymbols
- Specifies whether to require symbols for IAM user passwords.public Boolean getRequireSymbols()
public Boolean isRequireNumbers()
public void setRequireNumbers(Boolean requireNumbers)
requireNumbers
- Specifies whether to require numbers for IAM user passwords.public PasswordPolicy withRequireNumbers(Boolean requireNumbers)
Returns a reference to this object so that method calls can be chained together.
requireNumbers
- Specifies whether to require numbers for IAM user passwords.public Boolean getRequireNumbers()
public Boolean isRequireUppercaseCharacters()
public void setRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
requireUppercaseCharacters
- Specifies whether to require uppercase characters for IAM user
passwords.public PasswordPolicy withRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Returns a reference to this object so that method calls can be chained together.
requireUppercaseCharacters
- Specifies whether to require uppercase characters for IAM user
passwords.public Boolean getRequireUppercaseCharacters()
public Boolean isRequireLowercaseCharacters()
public void setRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
requireLowercaseCharacters
- Specifies whether to require lowercase characters for IAM user
passwords.public PasswordPolicy withRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Returns a reference to this object so that method calls can be chained together.
requireLowercaseCharacters
- Specifies whether to require lowercase characters for IAM user
passwords.public Boolean getRequireLowercaseCharacters()
public Boolean isAllowUsersToChangePassword()
public void setAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
allowUsersToChangePassword
- Specifies whether IAM users are allowed to change their own password.public PasswordPolicy withAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Returns a reference to this object so that method calls can be chained together.
allowUsersToChangePassword
- Specifies whether IAM users are allowed to change their own password.public Boolean getAllowUsersToChangePassword()
public Boolean isExpirePasswords()
public void setExpirePasswords(Boolean expirePasswords)
expirePasswords
- Specifies whether IAM users are required to change their password
after a specified number of days.public PasswordPolicy withExpirePasswords(Boolean expirePasswords)
Returns a reference to this object so that method calls can be chained together.
expirePasswords
- Specifies whether IAM users are required to change their password
after a specified number of days.public Boolean getExpirePasswords()
public Integer getMaxPasswordAge()
Constraints:
Range: 1 - 1095
public void setMaxPasswordAge(Integer maxPasswordAge)
Constraints:
Range: 1 - 1095
maxPasswordAge
- The number of days that an IAM user password is valid.public PasswordPolicy withMaxPasswordAge(Integer maxPasswordAge)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 1095
maxPasswordAge
- The number of days that an IAM user password is valid.public Integer getPasswordReusePrevention()
Constraints:
Range: 1 - 24
public void setPasswordReusePrevention(Integer passwordReusePrevention)
Constraints:
Range: 1 - 24
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are
prevented from reusing.public PasswordPolicy withPasswordReusePrevention(Integer passwordReusePrevention)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 24
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are
prevented from reusing.public Boolean isHardExpiry()
public void setHardExpiry(Boolean hardExpiry)
hardExpiry
- Specifies whether IAM users are prevented from setting a new password
after their password has expired.public PasswordPolicy withHardExpiry(Boolean hardExpiry)
Returns a reference to this object so that method calls can be chained together.
hardExpiry
- Specifies whether IAM users are prevented from setting a new password
after their password has expired.public Boolean getHardExpiry()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.