public interface PasswordRule extends Scriptable
A rule must provide a score for a given password.
It is possible for a rule to return a negative score.
| Modifier and Type | Method and Description |
|---|---|
void |
configure(java.util.Map<java.lang.String,java.lang.String> config)
Configures the specified rule.
|
int |
score(java.lang.String password)
Returns the score for the password.
|
toScriptvoid configure(java.util.Map<java.lang.String,java.lang.String> config)
The properties are specific to each rule.
config - The configuration.int score(java.lang.String password)
password - The password to evaluate.