public class GeneratePasswordCmdImpl extends TaskCommandImpl implements GeneratePasswordCmd
This task command will randomly generate a password of a specified length.
Before executing this task command, invoke the following method:
Upon execution of this command, call the getPassword method to retrieve the randomly generated password. Error View Task: GeneratePasswordErrorView
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The copyright statement.
|
static java.lang.String | ERRTASK_NAME
The error task name.
|
Constructor and Description |
---|
GeneratePasswordCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getPassword()
This method retrieves the generated Password.
|
void | performExecute()
This method generates a new random password of the specified length.
|
void | setPasswordLength(int nPasswordLength)
This method sets the length of the password to generate.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
public java.lang.String getPassword()
public void performExecute() throws ECException
public void setPasswordLength(int nPasswordLength)