|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.password.Password
public class Password
Class for determining what type and what quantity of characters a password contains.
| Constructor Summary | |
|---|---|
Password(String text)
Create a new password with the supplied password text. |
|
| Method Summary | |
|---|---|
boolean |
containsAlphabetical()
Returns whether or not this password contains alphabetical characters. |
boolean |
containsAlphanumeric()
Returns whether or not this password contains alphanumeric characters. |
boolean |
containsDigits()
Returns whether or not this password contains digits. |
boolean |
containsLowercase()
Returns whether or not this password contains lowercase characters. |
boolean |
containsNonAlphabetical()
Returns whether or not this password contains non-alphabetical characters. |
boolean |
containsNonAlphanumeric()
Returns whether or not this password contains non-alphanumeric characters. |
boolean |
containsNonDigits()
Returns whether or not this password contains non-digits. |
boolean |
containsUppercase()
Returns whether or not this password contains uppercase characters. |
boolean |
containsWhitespace()
Returns whether or not this Password contains whitespace characters. |
char[] |
getAlphabetical()
Returns the alphabetical characters in this password. |
char[] |
getAlphanumeric()
Returns the alphanumeric characters in this password. |
char[] |
getDigits()
Returns the digits in this password. |
char[] |
getLowercase()
Returns the lowercase characters in this password. |
char[] |
getNonAlphabetical()
Returns the non-alphabetical characters in this password. |
char[] |
getNonAlphanumeric()
Returns the non-alphanumeric characters in this password. |
char[] |
getNonDigits()
Returns the non-digits in this password. |
int |
getNumberOfAlphabetical()
Returns the number of alphabetical characters in this password. |
int |
getNumberOfAlphanumeric()
Returns the number of alphanumeric characters in this password. |
int |
getNumberOfDigits()
Returns the number of digits in this password. |
int |
getNumberOfLowercase()
Returns the number of lowercase characters in this password. |
int |
getNumberOfNonAlphabetical()
Returns the number of non-alphabetical characters in this password. |
int |
getNumberOfNonAlphanumeric()
Returns the number of non-alphanumeric characters in this password. |
int |
getNumberOfNonDigits()
Returns the number of non-digits in this password. |
int |
getNumberOfUppercase()
Returns the number of uppercase characters in this password. |
int |
getNumberOfWhitespace()
Returns the number of whitespace characters in this password. |
String |
getText()
Returns the text of this password. |
char[] |
getUppercase()
Returns the uppercase characters in this password. |
char[] |
getWhitespace()
Returns the whitespace characters in this password. |
int |
length()
Returns the length of this password. |
String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Password(String text)
text - password| Method Detail |
|---|
public String getText()
public int length()
public boolean containsDigits()
public int getNumberOfDigits()
public char[] getDigits()
public boolean containsNonDigits()
public int getNumberOfNonDigits()
public char[] getNonDigits()
public boolean containsAlphabetical()
public int getNumberOfAlphabetical()
public char[] getAlphabetical()
public boolean containsNonAlphabetical()
public int getNumberOfNonAlphabetical()
public char[] getNonAlphabetical()
public boolean containsAlphanumeric()
public int getNumberOfAlphanumeric()
public char[] getAlphanumeric()
public boolean containsNonAlphanumeric()
public int getNumberOfNonAlphanumeric()
public char[] getNonAlphanumeric()
public boolean containsUppercase()
public int getNumberOfUppercase()
public char[] getUppercase()
public boolean containsLowercase()
public int getNumberOfLowercase()
public char[] getLowercase()
public boolean containsWhitespace()
public int getNumberOfWhitespace()
public char[] getWhitespace()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||