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.
|
defaultCommandClassName, 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.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
public java.lang.String getPassword()
getPassword
in interface GeneratePasswordCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setPasswordLength(int nPasswordLength)
setPasswordLength
in interface GeneratePasswordCmd
nPasswordLength
- The length of the Password.