public class Result extends Object
| Constructor and Description |
|---|
Result(Configuration configuration,
String password,
List<Match> matches) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration()
Returns the configuration used to generate this result.
|
Double |
getEntropy()
Returns the entropy for this
Result. |
Feedback |
getFeedback()
Returns feedback to the user to suggest ways to improve their password.
|
BigDecimal |
getGuesses()
The estimated number of tries required to crack this password
|
List<Match> |
getMatches()
The matches that comprise this result.
|
String |
getPassword()
The original password passed in.
|
boolean |
isMinimumEntropyMet()
Returns whether the minimum entropy specified in the config was met.
|
boolean |
isRandom()
Returns whether the password is considered to be random.
|
public Result(Configuration configuration, String password, List<Match> matches) throws IllegalStateException
configuration - the Configuration object.password - the password this result was generated formatches - list of matches which when combined make up the original passwordIllegalStateException - if the matches do not equal the original password, this will be thrown.public Double getEntropy()
Result.double.public BigDecimal getGuesses()
BigDecimalpublic List<Match> getMatches()
List of Match that were used in this result estimation.public String getPassword()
String of the original password.public boolean isMinimumEntropyMet()
true if minimum entropy is met; false if not.public boolean isRandom()
public Configuration getConfiguration()
Configuration that was used to generate this Result.public Feedback getFeedback()
Feedback object with suggestions for the user.Copyright © 2017. All rights reserved.