public class ResetPasswordCmdImpl extends ControllerCommandImpl implements ResetPasswordCmd
This controller command is used to reset the password of a user.
Before executing this task command, run the following set methods:
If the user is currently logged into the system, the following set methods should be invoked before calling execute on the command.
If a user is currently not logged onto the system, the following set methods should be invoked before calling execute on the command.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The copyright statement.
|
static java.lang.String | ERRTASK_NAME
The error task name.
|
static java.lang.String | VALIDATION_CODE |
Constructor and Description |
---|
ResetPasswordCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | getChallengeAnswer()
This method retrieves the answer to the challenge question used to confirm the identity of the user.
|
protected java.lang.String | getErrorRedirectURL()
This method retrieves an optional URL to redirect the user on error conditions.
|
protected java.lang.String | getLogonId()
This method retrieves the logon ID of the shopper or administrator whose password needs to be reset.
|
protected java.lang.String | getLogonPassword()
This method retrieves the new password of the user whose password is being changed.
|
protected java.lang.String | getLogonPasswordOld()
This method retrieves the old password of the user whose password is being changed.
|
protected java.lang.String | getLogonPasswordVerify()
This method retrieves a confirmation of the new password of the user whose password is being changed.
|
protected java.lang.String | getRedirectURL()
This method retrieves the URL to redirect the user after a successful password reset.
|
protected java.lang.String | getValidationCode()
This method retrieves the validation code used to update the password by a guest user.
|
boolean | isGeneric()
This method returns true since this command can be invoked by a generic user.
|
void | performExecute()
This method executes this command.
|
protected TypedProperty | removeSensitiveDataFromRequestProperties()
Remove sensitive data from request properties so that they will not show up in the krypto parameter in the URL.
|
void | setChallengeAnswer(java.lang.String strChallengeAnswer)
This method sets the answer to the challenge question used to confirm the identity of the user.
|
void | setErrorRedirectURL(java.lang.String newErrorURL)
This method sets the URL to redirect the user in case of error.
|
void | setLogonId(java.lang.String strLogonId)
This method sets the logon ID of the shopper or administrator whose password needs to be reset.
|
void | setLogonPassword(java.lang.String strNewPassword)
This method sets the new password of the user whose password is being changed.
|
void | setLogonPasswordOld(java.lang.String strOldPassword)
This method sets the old password of the user whose password is being changed.
|
void | setLogonPasswordVerify(java.lang.String strNewPasswordVerify)
This method sets the confirmation of the new password of the user whose password is being changed.
|
void | setRedirectURL(java.lang.String strRedirectURL)
This method sets the URL to redirect the user after a successful password reset.
|
void | setRequestProperties(TypedProperty hshReqParameters)
This method sets the following request properties: logonID logonPasswordOld logonPassword logonPasswordVerify challengeAnswer from the supplied hshReqParameters.
|
void | setValidationCode(java.lang.String strValidationCode)
This method sets the validation code used to update the password by a guest user after the challenge answer has been answered.
|
void | validateParameters()
This method validates the parameters through the following operations.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
public static final java.lang.String VALIDATION_CODE
protected java.lang.String getChallengeAnswer()
protected java.lang.String getValidationCode()
protected java.lang.String getErrorRedirectURL()
protected java.lang.String getLogonId()
protected java.lang.String getLogonPassword()
protected java.lang.String getLogonPasswordOld()
protected java.lang.String getLogonPasswordVerify()
protected java.lang.String getRedirectURL()
public void performExecute() throws ECException
public void setChallengeAnswer(java.lang.String strChallengeAnswer)
public void setValidationCode(java.lang.String strValidationCode)
public void setErrorRedirectURL(java.lang.String newErrorURL)
public void setLogonId(java.lang.String strLogonId)
public void setLogonPassword(java.lang.String strNewPassword)
public void setLogonPasswordOld(java.lang.String strOldPassword)
public void setLogonPasswordVerify(java.lang.String strNewPasswordVerify)
public void setRedirectURL(java.lang.String strRedirectURL)
public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
public void validateParameters() throws ECException
public boolean isGeneric()
protected TypedProperty removeSensitiveDataFromRequestProperties()