Class PasswordPolicy
- All Implemented Interfaces:
Serializable
,Cloneable
Contains information about the account password policy.
This data type is used as a response element in the GetAccountPasswordPolicy action.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Specifies whether IAM users are allowed to change their own password.Indicates whether passwords in the account expire.Specifies whether IAM users are prevented from setting a new password after their password has expired.The number of days that an IAM user password is valid.Minimum length to require for IAM user passwords.Specifies the number of previous passwords that IAM users are prevented from reusing.Specifies whether to require lowercase characters for IAM user passwords.Specifies whether to require numbers for IAM user passwords.Specifies whether to require symbols for IAM user passwords.Specifies whether to require uppercase characters for IAM user passwords.int
hashCode()
Specifies whether IAM users are allowed to change their own password.Indicates whether passwords in the account expire.Specifies whether IAM users are prevented from setting a new password after their password has expired.Specifies whether to require lowercase characters for IAM user passwords.Specifies whether to require numbers for IAM user passwords.Specifies whether to require symbols for IAM user passwords.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) Indicates whether passwords in the account expire.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.toString()
Returns a string representation of this object; useful for testing and debugging.withAllowUsersToChangePassword
(Boolean allowUsersToChangePassword) Specifies whether IAM users are allowed to change their own password.withExpirePasswords
(Boolean expirePasswords) Indicates whether passwords in the account expire.withHardExpiry
(Boolean hardExpiry) Specifies whether IAM users are prevented from setting a new password after their password has expired.withMaxPasswordAge
(Integer maxPasswordAge) The number of days that an IAM user password is valid.withMinimumPasswordLength
(Integer minimumPasswordLength) Minimum length to require for IAM user passwords.withPasswordReusePrevention
(Integer passwordReusePrevention) Specifies the number of previous passwords that IAM users are prevented from reusing.withRequireLowercaseCharacters
(Boolean requireLowercaseCharacters) Specifies whether to require lowercase characters for IAM user passwords.withRequireNumbers
(Boolean requireNumbers) Specifies whether to require numbers for IAM user passwords.withRequireSymbols
(Boolean requireSymbols) Specifies whether to require symbols for IAM user passwords.withRequireUppercaseCharacters
(Boolean requireUppercaseCharacters) Specifies whether to require uppercase characters for IAM user passwords.
-
Constructor Details
-
PasswordPolicy
public PasswordPolicy()
-
-
Method Details
-
setMinimumPasswordLength
Minimum length to require for IAM user passwords.
- Parameters:
minimumPasswordLength
- Minimum length to require for IAM user passwords.
-
getMinimumPasswordLength
Minimum length to require for IAM user passwords.
- Returns:
- Minimum length to require for IAM user passwords.
-
withMinimumPasswordLength
Minimum length to require for IAM user passwords.
- Parameters:
minimumPasswordLength
- Minimum length to require for IAM user passwords.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRequireSymbols
Specifies whether to require symbols for IAM user passwords.
- Parameters:
requireSymbols
- Specifies whether to require symbols for IAM user passwords.
-
getRequireSymbols
Specifies whether to require symbols for IAM user passwords.
- Returns:
- Specifies whether to require symbols for IAM user passwords.
-
withRequireSymbols
Specifies whether to require symbols for IAM user passwords.
- Parameters:
requireSymbols
- Specifies whether to require symbols for IAM user passwords.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRequireSymbols
Specifies whether to require symbols for IAM user passwords.
- Returns:
- Specifies whether to require symbols for IAM user passwords.
-
setRequireNumbers
Specifies whether to require numbers for IAM user passwords.
- Parameters:
requireNumbers
- Specifies whether to require numbers for IAM user passwords.
-
getRequireNumbers
Specifies whether to require numbers for IAM user passwords.
- Returns:
- Specifies whether to require numbers for IAM user passwords.
-
withRequireNumbers
Specifies whether to require numbers for IAM user passwords.
- Parameters:
requireNumbers
- Specifies whether to require numbers for IAM user passwords.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRequireNumbers
Specifies whether to require numbers for IAM user passwords.
- Returns:
- Specifies whether to require numbers for IAM user passwords.
-
setRequireUppercaseCharacters
Specifies whether to require uppercase characters for IAM user passwords.
- Parameters:
requireUppercaseCharacters
- Specifies whether to require uppercase characters for IAM user passwords.
-
getRequireUppercaseCharacters
Specifies whether to require uppercase characters for IAM user passwords.
- Returns:
- Specifies whether to require uppercase characters for IAM user passwords.
-
withRequireUppercaseCharacters
Specifies whether to require uppercase characters for IAM user passwords.
- Parameters:
requireUppercaseCharacters
- Specifies whether to require uppercase characters for IAM user passwords.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRequireUppercaseCharacters
Specifies whether to require uppercase characters for IAM user passwords.
- Returns:
- Specifies whether to require uppercase characters for IAM user passwords.
-
setRequireLowercaseCharacters
Specifies whether to require lowercase characters for IAM user passwords.
- Parameters:
requireLowercaseCharacters
- Specifies whether to require lowercase characters for IAM user passwords.
-
getRequireLowercaseCharacters
Specifies whether to require lowercase characters for IAM user passwords.
- Returns:
- Specifies whether to require lowercase characters for IAM user passwords.
-
withRequireLowercaseCharacters
Specifies whether to require lowercase characters for IAM user passwords.
- Parameters:
requireLowercaseCharacters
- Specifies whether to require lowercase characters for IAM user passwords.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRequireLowercaseCharacters
Specifies whether to require lowercase characters for IAM user passwords.
- Returns:
- Specifies whether to require lowercase characters for IAM user passwords.
-
setAllowUsersToChangePassword
Specifies whether IAM users are allowed to change their own password.
- Parameters:
allowUsersToChangePassword
- Specifies whether IAM users are allowed to change their own password.
-
getAllowUsersToChangePassword
Specifies whether IAM users are allowed to change their own password.
- Returns:
- Specifies whether IAM users are allowed to change their own password.
-
withAllowUsersToChangePassword
Specifies whether IAM users are allowed to change their own password.
- Parameters:
allowUsersToChangePassword
- Specifies whether IAM users are allowed to change their own password.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAllowUsersToChangePassword
Specifies whether IAM users are allowed to change their own password.
- Returns:
- Specifies whether IAM users are allowed to change their own password.
-
setExpirePasswords
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withExpirePasswords
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Returns:
- 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.
-
setMaxPasswordAge
The number of days that an IAM user password is valid.
- Parameters:
maxPasswordAge
- The number of days that an IAM user password is valid.
-
getMaxPasswordAge
The number of days that an IAM user password is valid.
- Returns:
- The number of days that an IAM user password is valid.
-
withMaxPasswordAge
The number of days that an IAM user password is valid.
- Parameters:
maxPasswordAge
- The number of days that an IAM user password is valid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPasswordReusePrevention
Specifies the number of previous passwords that IAM users are prevented from reusing.
- Parameters:
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are prevented from reusing.
-
getPasswordReusePrevention
Specifies the number of previous passwords that IAM users are prevented from reusing.
- Returns:
- Specifies the number of previous passwords that IAM users are prevented from reusing.
-
withPasswordReusePrevention
Specifies the number of previous passwords that IAM users are prevented from reusing.
- Parameters:
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are prevented from reusing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHardExpiry
Specifies whether IAM users are prevented from setting a new password after their password has expired.
- Parameters:
hardExpiry
- Specifies whether IAM users are prevented from setting a new password after their password has expired.
-
getHardExpiry
Specifies whether IAM users are prevented from setting a new password after their password has expired.
- Returns:
- Specifies whether IAM users are prevented from setting a new password after their password has expired.
-
withHardExpiry
Specifies whether IAM users are prevented from setting a new password after their password has expired.
- Parameters:
hardExpiry
- Specifies whether IAM users are prevented from setting a new password after their password has expired.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isHardExpiry
Specifies whether IAM users are prevented from setting a new password after their password has expired.
- Returns:
- Specifies whether IAM users are prevented from setting a new password after their password has expired.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-