public class PasswordCheckResult
extends java.lang.Object
| Constructor and Description |
|---|
PasswordCheckResult(float security,
boolean tooShort,
boolean tooLong,
boolean insufficientCharacteristics,
boolean insufficientDigits,
boolean insufficientAlphabetical,
boolean insufficientSpecial,
boolean insufficientUpper,
boolean insufficientLower,
boolean illegalWhitespace,
boolean illegalWord,
boolean illegalSequence,
boolean illegalRepetition,
boolean illegalCharacter,
java.lang.String blacklistedCharacters)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBlacklistedCharacters()
Returns the blacklisted characters found in the password.
|
float |
getSecurity()
Returns the strength of the password.
|
boolean |
isIllegalCharacter()
Returns whether the password contains illegal characters or numbers.
|
boolean |
isIllegalRepetition()
Returns whether the password contains an illegal repetition of characters or numbers.
|
boolean |
isIllegalSequence()
Returns whether the password contains an illegal sequence of characters or numbers.
|
boolean |
isIllegalWhitespace()
Returns whether the password contains illegal whitespace characters or not.
|
boolean |
isIllegalWord()
Returns whether the password is an illegal word that can be found in a dictionary, for instance.
|
boolean |
isInsufficientAlphabetical()
Returns whether the password contains an insufficient number of alphabetical characters or not.
|
boolean |
isInsufficientCharacteristics()
Returns whether the password has any insufficient characteristics or not.
|
boolean |
isInsufficientDigits()
Returns whether the password contains an insufficient number of digits or not.
|
boolean |
isInsufficientLower()
Returns whether the password contains an insufficient number of lowercase letters or not.
|
boolean |
isInsufficientSpecial()
Returns whether the password contains an insufficient number of special characters or not.
|
boolean |
isInsufficientUpper()
Returns whether the password contains an insufficient number of uppercase letters or not.
|
boolean |
isTooLong()
Returns whether the password is too long or not.
|
boolean |
isTooShort()
Returns whether the password is too short or not.
|
public PasswordCheckResult(float security,
boolean tooShort,
boolean tooLong,
boolean insufficientCharacteristics,
boolean insufficientDigits,
boolean insufficientAlphabetical,
boolean insufficientSpecial,
boolean insufficientUpper,
boolean insufficientLower,
boolean illegalWhitespace,
boolean illegalWord,
boolean illegalSequence,
boolean illegalRepetition,
boolean illegalCharacter,
java.lang.String blacklistedCharacters)
security - The strength of the password in a range from 0.0 - 1.0 with 0.0 being very weak, and 1.0 very strong.tooShort - Whether the password is too short or not.tooLong - Whether the password is too long or not.insufficientCharacteristics - Whether the password has any insufficient characteristics or not.insufficientDigits - Whether the password contains an insufficient number of digits or not.insufficientAlphabetical - Whether the password contains an insufficient number of alphabetic characters or not.insufficientSpecial - Whether the password contains an insufficient number of special characters or not.insufficientUpper - Whether the password contains an insufficient number of uppercase letters or not.insufficientLower - Whether the password contains an insufficient number of lowercase letters or not.illegalWhitespace - Whether the password contains illegal whitespace characters or not.illegalWord - Whether the password is an illegal word that can be found in a dictionary, for instance.illegalSequence - Whether the password contains an illegal sequence of characters or numbers.illegalRepetition - Whether the password contains an illegal repetition of characters or numbers.illegalCharacter - Whether the password contains illegal characters or numbers.blacklistedCharacters - The blacklisted characters found in the password.public boolean isTooShort()
true, if the password is too short, false otherwise.public boolean isTooLong()
true, if the password is too short, false otherwise.public boolean isInsufficientCharacteristics()
true, if the password has any insufficient characteristics, false otherwise.public boolean isInsufficientDigits()
true, if the password contains too few digits, false otherwise.public boolean isInsufficientAlphabetical()
true, if the password contains too few alphabetical characters, false otherwise.public boolean isInsufficientSpecial()
true, if the password contains too few special characters, false otherwise.public boolean isInsufficientUpper()
true, if the password contains too few uppercase letters, false otherwise.public boolean isInsufficientLower()
true, if the password contains too few lowercase letters, false otherwise.public boolean isIllegalWhitespace()
true, if the password contains illegal whitespace characters, false otherwise.public boolean isIllegalWord()
true, if the password is an illegal word, false otherwise.public boolean isIllegalSequence()
true, if the password contains an illegal sequence of characters or numbers, false otherwise.public boolean isIllegalRepetition()
true, if the password contains an illegal repetition of characters or numbers, false otherwise.public boolean isIllegalCharacter()
true, if the password contains illegal characters or numbers, false otherwise.public java.lang.String getBlacklistedCharacters()
String containing all characters of the password that have been blacklisted.public float getSecurity()