com.ibm.commerce.security.commands
Class GenerateSaltCmdImpl

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

public class GenerateSaltCmdImpl
extends TaskCommandImpl
implements GenerateSaltCmd

This task command will randomly generated a password 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


Field Summary
static java.lang.String ERRTASK_NAME
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.security.commands.GenerateSaltCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
GenerateSaltCmdImpl()
           
 
Method Summary
 java.lang.String getSalt()
          Retrieve the Salt that was generated.
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void setSaltLength(int nSaltLength)
          Sets the length of the salt that should be generated.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME
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
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

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.