| Author |
Re: password policy
|
Joe Cheung
Ranch Hand
Joined: Oct 18, 2002
Posts: 104
|
|
Dear all, How can I implement my own password policy that the password must consists of at least one character (a-z or A-Z) and one numeric value (0-9) in Java? Thanks! Joe
|
Joe
|
 |
Tom Tremain
Greenhorn
Joined: May 09, 2005
Posts: 1
|
|
A good place to start would be to read the javadocs for the the isDigit(char ch) and isLetter(char ch) static methods of the java.lang.Character class. Using these methods inside of a loop should enable you to verify that a password meets the security requirements defined in your post.
|
 |
Stuart Gray
Ranch Hand
Joined: Apr 21, 2005
Posts: 410
|
|
|
|
 |
Yosi Hendarsjah
Ranch Hand
Joined: Oct 02, 2003
Posts: 164
|
|
|
You can use regular expression.
|
 |
 |
|
|
subject: Re: password policy
|
|
|