public class ResetPasswordGuestCmdImpl extends TaskCommandImpl implements ResetPasswordGuestCmd
This task command is used to reset the password of an unauthenticated user.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copyright statement.
|
static java.lang.String | ERRTASK_NAME
Error task name
|
Constructor and Description |
---|
ResetPasswordGuestCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | generateValidationCode(java.lang.String astrGeneratedPassword, java.lang.String astrLogonId, boolean abRequiresSameSession)
Generates the validation code based on the logonId, the new generated password, activity signature and expiry time.
|
protected java.lang.String | getChallengeAnswer()
This method retrieves the answer to the challenge question used to confirm identity.
|
protected long | getExpiryPeriod()
The number of minutes that the reset password link is valid.
|
protected java.lang.String | getLogonId()
This method retrieves the logon ID of the shopper or administrator whose password needs to be reset.
|
void | performExecute()
This method executes the command.
|
void | setChallengeAnswer(java.lang.String strChallengeAnswer)
This method sets the answer to the challenge question; used to confirm identity.
|
void | setLogonId(java.lang.String strLogonId)
This method sets the logon ID of the shopper or administrator whose password needs to be reset.
|
void | validateParameters()
This method validates the parameters through ensuring that the logon ID supplied is valid and belongs to a registered user.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
protected java.lang.String getChallengeAnswer()
protected java.lang.String getLogonId()
public void performExecute() throws ECException
protected java.lang.String generateValidationCode(java.lang.String astrGeneratedPassword, java.lang.String astrLogonId, boolean abRequiresSameSession)
protected long getExpiryPeriod()
public void setChallengeAnswer(java.lang.String strChallengeAnswer)
public void setLogonId(java.lang.String strLogonId)
public void validateParameters() throws ECException