Interface PasswordStrength
-
public interface PasswordStrengthThis class represents the strength of a password based on an analysis of a provided (new) password. The OMM may refuse passwords that are too weak.
Also there may be additional information to display to the user on how to choose an appropriate password.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPasswordStrength.PasswordQualityThe quality of the password of an agent.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetGuesses()Gets the amount of average guesses the password or0if the amount is unknown.StringgetProblem()Gets the problem of the password leading to the current score ornullin case there is no problem.intgetScore()Gets the overall score of the password.Collection<String>getSuggestions()Gets some arbitrary suggestions on how to improve the password further ornullin case there are no suggestions.
-
-
-
Method Detail
-
getScore
int getScore()
Gets the overall score of the password. This is a simple number for the strength of the password. This decides whether the OMM will accept the password.- Returns:
- The overall score of the password determining whether the OMM will accept the password.
-
getGuesses
double getGuesses()
Gets the amount of average guesses the password or0if the amount is unknown.- Returns:
- The amount of average guesses the password or
0if the amount is unknown.
-
getProblem
String getProblem()
Gets the problem of the password leading to the current score ornullin case there is no problem.- Returns:
- The problem of the password leading to the current score or
null.
-
getSuggestions
Collection<String> getSuggestions()
Gets some arbitrary suggestions on how to improve the password further ornullin case there are no suggestions.- Returns:
- Some arbitrary suggestions on how to improve the password further or
null.
-
-