com.ibm.commerce.security.commands

Class ResetPasswordRegisterCmdImpl

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

    This task command is used to reset the password of a user that is logged onto WebSphereCommerce.

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

                    setNewPassword
                    setNewPasswordVerify
                    setOldPassword
     
    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

      • ResetPasswordRegisterCmdImpl

        public ResetPasswordRegisterCmdImpl()
    • Method Detail

      • setErrorRedirectURL

        public void setErrorRedirectURL(java.lang.String newErrorRedirectURL)
        Sets the error URL to which to redirect if specified. This is used in case of user errors in the parameters.
        Specified by:
        setErrorRedirectURL in interface ResetPasswordRegisterCmd
        Parameters:
        strNewPassword - New password.
      • 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 ResetPasswordRegisterCmd
        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 ResetPasswordRegisterCmd
        Parameters:
        strNewPasswrdVerify - Confirmation of new password.
      • setOldPassword

        public void setOldPassword(java.lang.String strOldPassword)
        Sets the old password of the user whose password is being changed.
        Specified by:
        setOldPassword in interface ResetPasswordRegisterCmd
        Parameters:
        strOldPassword - Old password to be changed.
      • 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