|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface which needs to be implemented by all custom password generators.
Field Summary | |
---|---|
static int |
LAST_CHARACTER_INDEX
Constant used to initialize the maximum password length. |
Method Summary | |
---|---|
void |
addChars(char[] list)
Constrain the set of characters to be used by the password generator. |
void |
allLowerCase()
Constrain the set of characters to be used by the password generator. |
void |
allUpperCase()
Constrain the set of characters to be used by the password generator. |
java.lang.String |
generate()
Generate a string containing a password. |
void |
initialize(java.lang.String parameter)
Initialize the password generator. |
void |
removeChars(char[] charList)
Constrain the set of characters to be used by the password generator. |
void |
setCharListAt(char[] charList,
int startIndex,
int endIndex)
Constrain the set of characters to be used by the password generator. |
void |
setLength(int length)
Set the fixed length of passwords to be generated. |
Field Detail |
public static final int LAST_CHARACTER_INDEX
Method Detail |
public java.lang.String generate()
public void setLength(int length)
length
- requested length of password.public void addChars(char[] list)
list
- of characters of which at least one must be included in the generated password.public void removeChars(char[] charList)
charList
- List of characters none of which may be included in the generated password.public void allUpperCase()
public void allLowerCase()
public void setCharListAt(char[] charList, int startIndex, int endIndex)
charList
- list of characters to setstartIndex
- start index of the character in the generated password to choose
one of the given set of characters from.endIndex
- last index of the character in the generated password to choose
one of the given set of characters from.public void initialize(java.lang.String parameter)
parameter
- any text data which might be used in initializing the generator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |