Package tv.hd3g.authkit.mod.dto
Class Password
java.lang.Object
tv.hd3g.authkit.mod.dto.Password
- All Implemented Interfaces:
CharSequence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) voidcheckComplexity(int minSize, boolean mustHaveSpecialChars) voidcheckComplexity(int minSize, boolean mustHaveSpecialChars, String genericTermPresenceToIgnore) static voidcheckSomeComplexity(int minSize, boolean mustHaveSpecialChars, char[] value) booleanDon't modify internal password.static booleancontainCharArray(char[] term, char[] value) Don't manage complex UTF-16 chars.booleanstatic booleanequalsInsensitive(char[] l, char[] r) inthashCode()intlength()voidreset()subSequence(int start, int end) toString()booleanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
Password
-
-
Method Details
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
reset
public void reset() -
verify
-
hash
-
duplicate
-
hashCode
public int hashCode() -
equals
-
equalsInsensitive
public static boolean equalsInsensitive(char[] l, char[] r) -
containCharArray
public static boolean containCharArray(char[] term, char[] value) Don't manage complex UTF-16 chars. Don't clear term or value after use.- Returns:
- true if it find term in value.
-
contain
Don't modify internal password. Don't manage complex UTF-16 chars.- Returns:
- true if it find term in internal password.
-
checkComplexity
public void checkComplexity(int minSize, boolean mustHaveSpecialChars, String genericTermPresenceToIgnore) throws PasswordComplexityException - Throws:
PasswordComplexityException
-
checkSomeComplexity
public static void checkSomeComplexity(int minSize, boolean mustHaveSpecialChars, char[] value) throws PasswordComplexityException - Throws:
PasswordComplexityException
-
checkComplexity
public void checkComplexity(int minSize, boolean mustHaveSpecialChars) throws PasswordComplexityException - Throws:
PasswordComplexityException
-