PasswordCheck class

Used to verify the strength of a password.

Constructors

PasswordCheck({required String password, required PasswordPolicy passwordPolicy})
Takes the given password and verify it with the given passwordPolicy.

Properties

areMandatoryRulesRespected bool
Either or not the password apply to all mandatory rules.
no setter
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Either or not the password apply to the PasswordPolicy.
no setter
notRespectedMandatoryRules List<ValidationRule>
Mandatory rules that aren't respected by given password.
no setter
notRespectedOptionalRules List<ValidationRule>
Optional Rules that aren't respected by given password.
no setter
notRespectedRules List<ValidationRule>
Rules that aren't respected by given password.
no setter
password String
Password string that have to be verified.
final
passwordPolicy PasswordPolicy
PasswordPolicy object containing all ValidationRules and minimum score required.
final
respectedRules List<ValidationRule>
Rules that are respected by given password.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
Score of the password depending of the ValidationRules.
no setter
strength Strength
Return the Strength of the password depending of the password score.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited