|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.registry.manage.password.CheckPassword
public final class CheckPassword
CheckPassword contains methods for for checking
passwords according to Virginia Tech strength requirements.
This class is implemented as a singleton since it requires a lot
of memory for the dictionaries.
| Field Summary | |
|---|---|
private boolean |
backwardsUserId
Whether a password should be checked for a backwards user id |
private edu.vt.middleware.password.PasswordCharacterRule |
charRule
Rule used to set the character requirements of passwords |
private edu.vt.middleware.password.PasswordDictionaryRule |
dictRule
Rule used to set the dictionary requirements of passwords |
private boolean |
ignoreCaseUserId
Whether a password should be checked for a case insensitive user id |
private static CheckPassword |
INSTANCE
Instance of this CheckPassword |
private edu.vt.middleware.password.PasswordLengthRule |
lengthRule
Rule used to set the length of passwords |
private static Log |
LOG
Log for this class |
private String |
passwordDigest
Digest name for password history |
private edu.vt.middleware.password.PasswordSequenceRule |
seqRule
Rule used to set the sequence requirements of passwords |
private edu.vt.middleware.password.PasswordWhitespaceRule |
whitespaceRule
Rule used to check passwords for whitespace |
| Constructor Summary | |
|---|---|
private |
CheckPassword()
Default constructor. |
| Method Summary | |
|---|---|
void |
check(String user,
String password,
List history)
This will check the supplied password against the rules that have been adopted at Viginia Tech. |
private void |
doInit()
This performs all operations necessary to initialize this singleton. |
static CheckPassword |
getInstance()
This will return the instance of CheckPassword. |
static void |
main(String[] args)
This provides command line access to a CheckPassword. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Log LOG
private static final CheckPassword INSTANCE
CheckPassword
private edu.vt.middleware.password.PasswordWhitespaceRule whitespaceRule
private edu.vt.middleware.password.PasswordLengthRule lengthRule
private edu.vt.middleware.password.PasswordCharacterRule charRule
private edu.vt.middleware.password.PasswordDictionaryRule dictRule
private edu.vt.middleware.password.PasswordSequenceRule seqRule
private boolean ignoreCaseUserId
private boolean backwardsUserId
private String passwordDigest
| Constructor Detail |
|---|
private CheckPassword()
| Method Detail |
|---|
public static CheckPassword getInstance()
CheckPassword.
CheckPasswordprivate void doInit()
public void check(String user,
String password,
List history)
throws edu.vt.middleware.password.PasswordException
user - String to check password forpassword - String to checkhistory - List to check password against
edu.vt.middleware.password.PasswordException - if the supplied password does not meet
all the requirements of all rules
public static void main(String[] args)
throws Exception
CheckPassword.
args - String[]
Exception - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||