com.ibm.commerce.security.commands

Class GeneratePasswordCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, GeneratePasswordCmd, 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 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:

    • setPasswordLength

    Upon execution of this command, call the getPassword method to retrieve the randomly generated password. Error View Task: GeneratePasswordErrorView

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The copyright statement.
        See Also:
        Constant Field Values
      • ERRTASK_NAME

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

      • GeneratePasswordCmdImpl

        public GeneratePasswordCmdImpl()
    • Method Detail

      • getPassword

        public java.lang.String getPassword()
        This method retrieves the generated Password.
        Specified by:
        getPassword in interface GeneratePasswordCmd
        Returns:
        The Password.
      • setPasswordLength

        public void setPasswordLength(int nPasswordLength)
        This method sets the length of the password to generate.
        Specified by:
        setPasswordLength in interface GeneratePasswordCmd
        Parameters:
        nPasswordLength - The length of the Password.