PasswordPolicy class
What a new password must contain (signup, reset, change password).
Never applied on login: accounts made under an older, weaker policy must still be able to log in.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- minLength → int
-
final
- requireDigit → bool
-
final
- requireLowercase → bool
-
final
- requireSymbol → bool
-
Anything that is not a letter, digit or space counts (
@,_,-...).final - requireUppercase → bool
-
final
-
rules
→ List<
PasswordRule> -
Every rule this policy uses, in checklist order.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
allows(
String password) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unmetRules(
String password) → List< PasswordRule> -
The rules
passworddoes not meet yet; empty when it is allowed.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited