com.ibm.commerce.security.commands

Class GenerateSaltCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, GenerateSaltCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    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

    See Also:
    Serialized Form
    • 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()
        Retrieves the Salt that was generated.
        Specified by:
        getSalt in interface GenerateSaltCmd
        Returns:
        The Salt.
      • 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.