|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.sandev.sandbuild.SandTask
org.sandev.sandbuild.PassGen
Sets the defined property to be a random password of the given length. The password starts with a letter, followed by letters, numbers or special characters.
| Field Summary | |
protected int |
length
The length of the generated password. |
protected java.lang.String |
name
The name of the property to set with a random password value. |
protected java.lang.String |
okEscapes
Characters between ascii 33 and and ascii 126, other than letters or numbers, which can be included in the resulting password. |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
PassGen()
|
|
| Method Summary | |
void |
execute()
Set the specified property to the random password value. |
int |
getLength()
|
java.lang.String |
getName()
|
java.lang.String |
getOkEscapes()
|
protected char |
getRandomChar(java.util.Random random)
Return the next random character from the sequence generator. |
void |
setLength(int val)
|
void |
setName(java.lang.String val)
|
void |
setOkEscapes(java.lang.String val)
|
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected int length
protected java.lang.String okEscapes
| Constructor Detail |
public PassGen()
| Method Detail |
public void setName(java.lang.String val)
public java.lang.String getName()
public void setLength(int val)
public int getLength()
public void setOkEscapes(java.lang.String val)
public java.lang.String getOkEscapes()
public void execute()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionprotected char getRandomChar(java.util.Random random)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||