|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.password.PasswordGenerator
public class PasswordGenerator
Creates passwords that meet password character rule criteria.
| Constructor Summary | |
|---|---|
PasswordGenerator()
Default constructor. |
|
PasswordGenerator(Random r)
Creates a new password generator with the supplied random. |
|
| Method Summary | |
|---|---|
protected void |
fillRandomCharacters(CharSequence source,
int count,
Appendable target)
Fills the supplied target with count random characters from source. |
String |
generatePassword(int length,
List<CharacterRule> rules)
Generates a password of the supplied length which meets the requirements of the supplied character rules. |
protected void |
randomize(CharBuffer buffer)
Randomizes the contents of the given buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PasswordGenerator()
public PasswordGenerator(Random r)
r - random| Method Detail |
|---|
public String generatePassword(int length,
List<CharacterRule> rules)
length - of password to generaterules - to generate compliant password from
protected void fillRandomCharacters(CharSequence source,
int count,
Appendable target)
source - of random characters.count - number of random characters.target - character sequence that will hold characters.protected void randomize(CharBuffer buffer)
buffer - character buffer whose contents will be randomized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||