Class IamPasswordPolicy
IAM password policy settings.
public sealed class IamPasswordPolicy : PasswordPolicy
- Inheritance
-
IamPasswordPolicy
- Inherited Members
Constructors
IamPasswordPolicy(int, bool, bool, bool, bool, bool, bool, bool, bool, List<string>?)
Initializes a new instance of the IamPasswordPolicy class.
public IamPasswordPolicy(int minLength, bool isLowerCaseRequired, bool isUpperCaseRequired, bool isNumericRequired, bool isNonAlphanumericRequired, bool isNoMoreThan2IdenticalCharactersInRowRequired, bool isNoPastPasswordsRequired, bool isNoPersonalInfoRequired, bool isNoCommonPasswordsRequired, List<string>? customBlockedPasswords = null)
Parameters
minLength
intThe minimum length for a password.
isLowerCaseRequired
boolIf a password must include a lower case letter.
isUpperCaseRequired
boolIf a password must include an upper case letter.
isNumericRequired
boolIf a password must include a number.
isNonAlphanumericRequired
boolIf a password must include a special character.
isNoMoreThan2IdenticalCharactersInRowRequired
boolIf a password must not include more than 2 identical characters in a row.
isNoPastPasswordsRequired
boolIf a password must not be the same as any of the user's past password.
isNoPersonalInfoRequired
boolIf a password must not include any personal info.
isNoCommonPasswordsRequired
boolIf a password must not be the same as any of the 10,000 most common passwords.
customBlockedPasswords
List<string>The list of custom passwords that will be blocked.
Properties
CustomBlockedPasswords
Gets or sets a list of custom passwords that will be blocked.
public IList<string>? CustomBlockedPasswords { get; set; }
Property Value
IsNoCommonPasswordsRequired
Gets or sets a value indicating whether a password that is the same as any of the 10,000 most common passwords will be blocked.
public bool IsNoCommonPasswordsRequired { get; set; }
Property Value
- bool
If a password that is the same as any of the 10,000 most common passwords will be blocked.
IsNoMoreThan2IdenticalCharactersInRowRequired
Gets or sets a value indicating whether a password that includes more than 2 identical characters in a row will be blocked.
public bool IsNoMoreThan2IdenticalCharactersInRowRequired { get; set; }
Property Value
- bool
If a password that includes more than 2 identical characters in a row will be blocked.
IsNoPastPasswordsRequired
Gets or sets a value indicating whether a password that is the same as the user's past password will be blocked.
public bool IsNoPastPasswordsRequired { get; set; }
Property Value
- bool
If a password that is the same as the user's past password will be blocked.
IsNoPersonalInfoRequired
Gets or sets a value indicating whether a password that includes a user's personal info will be blocked.
public bool IsNoPersonalInfoRequired { get; set; }
Property Value
- bool
If a password that includes a user's personal info will be blocked.