Class ResetPasswordGuestValidationCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, ResetPasswordGuestValidationCmd,,,,,,

    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.

    See Also:
    Serialized Form
    • Field Detail


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

        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
        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
        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
        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
        validateParameters in class AbstractECTargetableCommand