|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.taglibs.random.RandomStrg
RandomStrg class will produce a variable set of random characters.
Constructor Summary | |
RandomStrg()
|
Method Summary | |
void |
generateRandomObject()
generate the Random object that will be used for this random number generator |
java.lang.String |
getRandom()
get the randomly created string for use with the <jsp:getProperty name="id" property="randomstr"/> |
void |
setAlgorithm(java.lang.String value)
set the algorithm name |
void |
setAllchars(boolean value)
set the allchars flag |
void |
setHmap(java.util.HashMap map)
set the hashmap that is used to check the uniqueness of random strings |
void |
setLength(java.lang.Integer value)
set the length of the random string |
void |
setProvider(java.lang.String value)
set the provider name |
void |
setRanges(java.util.ArrayList low,
java.util.ArrayList up)
set the ranges from which to choose the characters for the random string |
void |
setSingle(char[] chars,
int value)
set the array of single chars to choose from for this random string and the number of chars in the array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RandomStrg()
Method Detail |
public final void generateRandomObject() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public final java.lang.String getRandom()
public final void setRanges(java.util.ArrayList low, java.util.ArrayList up)
low
- set of lower rangesup
- set of upper rangespublic final void setHmap(java.util.HashMap map)
map
- hashmap whose keys are used to insure uniqueness of random strgspublic final void setLength(java.lang.Integer value)
value
- length of the random stringpublic final void setAlgorithm(java.lang.String value)
value
- name of the algorithm to use for a SecureRandom objectpublic final void setProvider(java.lang.String value)
value
- name of the package to check for the algorithmpublic final void setAllchars(boolean value)
value
- boolean value of the allchars flagpublic final void setSingle(char[] chars, int value)
chars
- the array of single charsvalue
- the number of single chars
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |