com.ibm.commerce.security.commands

Class ResetPasswordGuestCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ResetPasswordGuestCmd, 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 ResetPasswordGuestCmdImpl
    extends TaskCommandImpl
    implements ResetPasswordGuestCmd

    This task command is used to reset the password of an unauthenticated user.

    • Prior to 7.0.0.9, the default implementation is to email a random, temporary password to the user.
    • Beginning in 7.0.0.9, the CMDREG.PROPERTIES can be updated to include validationCode=true so that a validation code will be sent instead of the password. In this case, ResetPassword command would need to be called again with the validation code, the new password, and the new verification password to update the new password.
    Before executing this task command, the methods listed below must be invoked.
    • setLogonId
    • setChallengeAnswer
    Error View Task: ResetPasswordGuestErrorView
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

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

      • ResetPasswordGuestCmdImpl

        public ResetPasswordGuestCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        This method executes the command. If the user entered the correct answer to the challenge question, reset their password to a new random value and send a notification message.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • setChallengeAnswer

        public void setChallengeAnswer(java.lang.String strChallengeAnswer)
        This method sets the answer to the challenge question; used to confirm identity.
        Specified by:
        setChallengeAnswer in interface ResetPasswordGuestCmd
        Parameters:
        strChallengeAnswer - The answer to the challenge question.
      • setLogonId

        public void setLogonId(java.lang.String strLogonId)
        This method sets the logon ID of the shopper or administrator whose password needs to be reset.
        Specified by:
        setLogonId in interface ResetPasswordGuestCmd
        Parameters:
        strLogonId - The logon ID to be set.