Module io.inverno.mod.security
Interface PasswordPolicy.PasswordStrength
- All Known Implementing Classes:
SimplePasswordPolicy.SimplePasswordStrength
- Enclosing interface:
PasswordPolicy<A extends LoginCredentials,
B extends PasswordPolicy.PasswordStrength>
public static interface PasswordPolicy.PasswordStrength
A password strength provides both qualitative and quantitative marks to assess its level of protection against password cracking attacks.
It results from the evaluation of a password against a password policy (see PasswordPolicy.verify(io.inverno.mod.security.authentication.LoginCredentials, java.lang.String)
).
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Represents a qualitative password protection mark. -
Method Summary
Modifier and TypeMethodDescriptionReturns the password protection qualifier.int
getScore()
returns the password protection score.
-
Method Details
-
getQualifier
PasswordPolicy.PasswordStrength.Qualifier getQualifier()Returns the password protection qualifier.
- Returns:
- a password protection qualifier
-
getScore
int getScore()returns the password protection score.
- Returns:
- a password protection score
-