|
|||||||||
| 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
Password contains functions for determining what type and what
quantity of characters a password contains.
| Constructor Summary | |
|---|---|
Password(java.lang.String text)
This will create a new Password with the supplied password
text. |
|
| Method Summary | |
|---|---|
boolean |
containsAlphabetical()
This returns whether or not this Password contains
alphabetical characters. |
boolean |
containsAlphanumeric()
This returns whether or not this Password contains
alphanumeric characters. |
boolean |
containsDigits()
This returns whether or not this Password contains digits. |
boolean |
containsLowercase()
This returns whether or not this Password contains lowercase
characters. |
boolean |
containsNonAlphabetical()
This returns whether or not this Password contains
non-alphabetical characters. |
boolean |
containsNonAlphanumeric()
This returns whether or not this Password contains
non-alphanumeric characters. |
boolean |
containsNonDigits()
This returns whether or not this Password contains non-digits. |
boolean |
containsUppercase()
This returns whether or not this Password contains uppercase
characters. |
boolean |
containsWhitespace()
This returns whether or not this Password contains whitespace
characters. |
char[] |
getAlphabetical()
This returns the alphabetical characters in this Password. |
char[] |
getAlphanumeric()
This returns the alphanumeric characters in this Password. |
char[] |
getDigits()
This returns the digits in this Password. |
char[] |
getLowercase()
This returns the lowercase characters in this Password. |
char[] |
getNonAlphabetical()
This returns the non-alphabetical characters in this Password. |
char[] |
getNonAlphanumeric()
This returns the non-alphanumeric characters in this Password. |
char[] |
getNonDigits()
This returns the non-digits in this Password. |
int |
getNumberOfAlphabetical()
This returns the number of alphabetical characters in this
Password. |
int |
getNumberOfAlphanumeric()
This returns the number of alphanumeric characters in this
Password. |
int |
getNumberOfDigits()
This returns the number of digits in this Password. |
int |
getNumberOfLowercase()
This returns the number of lowercase characters in this
Password. |
int |
getNumberOfNonAlphabetical()
This returns the number of non-alphabetical characters in this
Password. |
int |
getNumberOfNonAlphanumeric()
This returns the number of non-alphanumeric characters in this
Password. |
int |
getNumberOfNonDigits()
This returns the number of non-digits in this Password. |
int |
getNumberOfUppercase()
This returns the number of uppercase characters in this
Password. |
int |
getNumberOfWhitespace()
This returns the number of whitespace characters in this
Password. |
java.lang.String |
getText()
This returns the text of this Password. |
char[] |
getUppercase()
This returns the uppercase characters in this Password. |
char[] |
getWhitespace()
This returns the whitespace characters in this Password. |
int |
length()
This returns the length of this Password. |
java.lang.String |
toString()
This 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(java.lang.String text)
Password with the supplied password
text.
text - String password| Method Detail |
|---|
public java.lang.String getText()
Password.
String - passwordpublic int length()
Password.
int - password lengthpublic boolean containsDigits()
Password contains digits.
boolean - whether or not the password contains digitspublic int getNumberOfDigits()
Password.
int - number of digits in the passwordpublic char[] getDigits()
Password.
char[] - digits in this passwordpublic boolean containsNonDigits()
Password contains non-digits.
boolean - whether or not the password contains
non-digitspublic int getNumberOfNonDigits()
Password.
int - number of non-digits in this passwordpublic char[] getNonDigits()
Password.
char[] - non-digits in this passwordpublic boolean containsAlphabetical()
Password contains
alphabetical characters.
boolean - whether or not the password contains
alphabetical characterspublic int getNumberOfAlphabetical()
Password.
int - number of alphabetical characters in this
passwordpublic char[] getAlphabetical()
Password.
char[] - alphabetical characters in this passwordpublic boolean containsNonAlphabetical()
Password contains
non-alphabetical characters.
boolean - whether or not the password contains
non-alphabetical characterspublic int getNumberOfNonAlphabetical()
Password.
int - number of non-alphabetical characters in this
passwordpublic char[] getNonAlphabetical()
Password.
char[] - non-alphabetical characters in this passwordpublic boolean containsAlphanumeric()
Password contains
alphanumeric characters.
boolean - whether or not the password contains
alphanumeric characterspublic int getNumberOfAlphanumeric()
Password.
int - number of alphanumeric characters in this
passwordpublic char[] getAlphanumeric()
Password.
char[] - alphanumeric characters in this passwordpublic boolean containsNonAlphanumeric()
Password contains
non-alphanumeric characters.
boolean - whether or not the password contains
non-alphanumeric characterspublic int getNumberOfNonAlphanumeric()
Password.
int - number of non-alphanumeric characters in this
passwordpublic char[] getNonAlphanumeric()
Password.
char[] - non-alphanumeric characters in this passwordpublic boolean containsUppercase()
Password contains uppercase
characters.
boolean - whether or not the password contains
uppercase characterspublic int getNumberOfUppercase()
Password.
int - number of uppercase characters in this passwordpublic char[] getUppercase()
Password.
char[] - uppercase characters in this passwordpublic boolean containsLowercase()
Password contains lowercase
characters.
boolean - whether or not the password contains
uppercase characterspublic int getNumberOfLowercase()
Password.
int - number of lowercase characters in this passwordpublic char[] getLowercase()
Password.
char[] - lowercase characters in this passwordpublic boolean containsWhitespace()
Password contains whitespace
characters.
boolean - whether or not the password contains
whitespace characterspublic int getNumberOfWhitespace()
Password.
int - number of whitespace characters in this
passwordpublic char[] getWhitespace()
Password.
char[] - whitespace characters in this passwordpublic java.lang.String toString()
toString in class java.lang.ObjectString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||