com.ibm.commerce.security.commands
Class GenerateSaltCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.security.commands.GenerateSaltCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, GenerateSaltCmd, TaskCommand

public class GenerateSaltCmdImpl
extends TaskCommandImpl
implements GenerateSaltCmd

This task command will randomly generated a salt of a specified length.

Before executing this task command the following set should be performed:

    setSaltLength

Upon execution of this command the method getSalt should be called to retrieve the randomly generated salt. Error View Task: GenerateSaltErrorView

See Also:
Serialized Form

Field Summary
static java.lang.String ERRTASK_NAME
          Error task name.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.security.commands. GenerateSaltCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
GenerateSaltCmdImpl()
           
 
Method Summary
 java.lang.String getSalt()
          Retrieve 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.
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME
Error task name.
See Also:
Constant Field Values
Constructor Detail

GenerateSaltCmdImpl

public GenerateSaltCmdImpl()
Method Detail

getSalt

public java.lang.String getSalt()
Retrieve the Salt that was generated.
Specified by:
getSalt in interface GenerateSaltCmd
Returns:
The Salt.

performExecute

public void performExecute()
                    throws ECException
Generates a random salt of a specified length.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

setSaltLength

public void setSaltLength(int nSaltLength)
Sets the length of the salt that should be generated.
Specified by:
setSaltLength in interface GenerateSaltCmd
Parameters:
nSaltLength - The length of the Salt.