Module io.inverno.mod.security
Class SimplePasswordPolicy.SimplePasswordStrength
java.lang.Object
io.inverno.mod.security.authentication.password.SimplePasswordPolicy.SimplePasswordStrength
- All Implemented Interfaces:
PasswordPolicy.PasswordStrength
- Enclosing class:
SimplePasswordPolicy<A extends LoginCredentials>
public static class SimplePasswordPolicy.SimplePasswordStrength
extends Object
implements PasswordPolicy.PasswordStrength
A simple password strength implementation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.inverno.mod.security.authentication.password.PasswordPolicy.PasswordStrength
PasswordPolicy.PasswordStrength.Qualifier
-
Constructor Summary
ConstructorDescriptionSimplePasswordStrength
(int score) Creates a simple password strength from the specified score which corresponds to the length of the password. -
Method Summary
Modifier and TypeMethodDescriptionReturns the password protection qualifier.int
getScore()
returns the password protection score.
-
Constructor Details
-
SimplePasswordStrength
public SimplePasswordStrength(int score) Creates a simple password strength from the specified score which corresponds to the length of the password.
- Parameters:
score
- the length of the evaluated password
-
-
Method Details
-
getQualifier
Description copied from interface:PasswordPolicy.PasswordStrength
Returns the password protection qualifier.
- Specified by:
getQualifier
in interfacePasswordPolicy.PasswordStrength
- Returns:
- a password protection qualifier
-
getScore
public int getScore()Description copied from interface:PasswordPolicy.PasswordStrength
returns the password protection score.
- Specified by:
getScore
in interfacePasswordPolicy.PasswordStrength
- Returns:
- a password protection score
-