|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.muni.fi.rtc.teacherWorkbench.model.PasswordGenerator
public class PasswordGenerator
Password generator
Field Summary | |
---|---|
static int |
DEFAULT_LENGTH
|
Constructor Summary | |
---|---|
PasswordGenerator()
Creates new password generator. |
|
PasswordGenerator(char[] possible)
Generates new password generator. |
Method Summary | |
---|---|
java.lang.String |
generatePassword()
Generates password of default length. |
java.lang.String |
generatePassword(int length)
Generates random password of given length |
static java.util.Collection<ImportedPerson> |
generatePasswordsForPeople(java.util.Collection<ImportedPerson> people)
Generates passwords for the users. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_LENGTH
Constructor Detail |
---|
public PasswordGenerator()
public PasswordGenerator(char[] possible)
possible
- Array of chars the password will be generated fromMethod Detail |
---|
public java.lang.String generatePassword(int length) throws EmptyPossibleCharsException
length
- Password length
EmptyPossibleCharsException
- if the array of possible chars is emptypublic java.lang.String generatePassword() throws EmptyPossibleCharsException
EmptyPossibleCharsException
- if the array of possible chars is emptypublic static java.util.Collection<ImportedPerson> generatePasswordsForPeople(java.util.Collection<ImportedPerson> people)
people
- People to have password generated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |