public interface PasswordCreateOption
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getAllPossibleChars()
return the string that contains all possible characters could be used in the password
PS: isCharValid method could return false for some chars even they are in this result
|
default int |
getMinLength()
min password length, default is 6
|
default boolean |
isCharValid(int idx,
char c)
check if the char is valid
|
default boolean |
isPasswordValid(java.lang.String password)
add additional logic here to check if the password is valid
By default, the password is invalid if it contains rude word or have sequential (4) chars
|
default boolean isCharValid(int idx, char c)
idx
- index of this char in the password Stringc
- char to checkdefault int getMinLength()
default boolean isPasswordValid(java.lang.String password)
password
- default java.lang.String getAllPossibleChars()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.