public class GenerateSaltCmdImpl extends TaskCommandImpl implements GenerateSaltCmd
This task command will randomly generate a salt of a specified length.
Before executing this task command, invoke the following method:
setSaltLength
Upon execution of this command,call the method getSalt to retrieve the randomly generated salt. Error View Task: GenerateSaltErrorView
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERRTASK_NAME
Error task name.
|
COPYRIGHT, defaultCommandClassName, NAME
Constructor and Description |
---|
GenerateSaltCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSalt()
Retrieves the Salt that was generated.
|
void |
performExecute()
Generates a random salt of a specified length.
|
void |
setSaltLength(int nSaltLength)
Sets the length of the salt that should be generated.
|
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 ERRTASK_NAME
public java.lang.String getSalt()
getSalt
in interface GenerateSaltCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setSaltLength(int nSaltLength)
setSaltLength
in interface GenerateSaltCmd
nSaltLength
- The length of the Salt.