com.ibm.commerce.security.commands

Class ResetPasswordGuestValidationCmdImpl

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

    This task command is used to verify the validation code that was sent to the user whose password is being reset, and then update the password to a new value. If an unauthenticated user began the reset process, the validation code must be specified in the same session as when the challenge answer was specified.

    Before executing this task command, the methods listed below must be invoked.

            setValidationCode
                    setNewPassword
                    setNewPasswordVerify
     
    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 view.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResetPasswordGuestValidationCmdImpl

        public ResetPasswordGuestValidationCmdImpl()
    • Method Detail

      • setNewPassword

        public void setNewPassword(java.lang.String strNewPassword)
        Sets the new password of the user whose password is being changed.
        Specified by:
        setNewPassword in interface ResetPasswordGuestValidationCmd
        Parameters:
        strNewPassword - The new password.
      • setNewPasswordVerify

        public void setNewPasswordVerify(java.lang.String strNewPasswordVerify)
        Sets the confirm new password string of the user whose password is being changed.
        Specified by:
        setNewPasswordVerify in interface ResetPasswordGuestValidationCmd
        Parameters:
        strNewPasswordVerify - Confirmation of new password.
      • setValidationCode

        public void setValidationCode(java.lang.String strValidationCode)
        Sets the validation code to verify that the correct user is resetting the password.
        Specified by:
        setValidationCode in interface ResetPasswordGuestValidationCmd
        Parameters:
        strValidationCode - the validation code used to ensure the correct user is resetting the password.
      • validateParameters

        public void validateParameters()
                                throws ECException
        Validates the parameters. Ensures that oldPassword, password, and passwordVerify are non-zero length strings. Next, it ensures that password and passwordVerify match. Finally, it checks to ensure that the new password satisfies all defined password policies.
        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException