com.ibm.commerce.security.commands
Interface ResetPasswordCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable
All Known Implementing Classes:
ResetPasswordCmdImpl

public interface ResetPasswordCmd
extends ControllerCommand

This controller command is used to reset the password of a user.

Before executing this task command run the following set commands:

If the user is currently logged into the system, to reset their password the following set methods should be invoked before calling execute on the command.

  setLogonPassword
  setLogonPasswordOld
  setLogonPasswordVerify
  setRedirectURL
 

If the user is currently not logged into the system, to reset the password of the user's registered identity, the following set methods should be invoked before calling the execute method on the command.

  setLogonId
  setChallengeAnswer
  setRedirectURL
 

Field Summary
static java.lang.String COPYRIGHT
Copyright field.
static java.lang.String defaultCommandClassName
Default command implementation class.
static java.lang.String NAME
Command name.
Method Summary
void setChallengeAnswer(java.lang.String strChallengeAnswer)
Sets the answer to the challenge question; used to confirm identity.
void setLogonId(java.lang.String strLogonId)
Sets the logon ID of the shopper or administrator whose password needs to be reset.
void setLogonPassword(java.lang.String strNewPassword)
Sets the new password of the user whose password is being changed.
void setLogonPasswordOld(java.lang.String strOldPassword)
Sets the old password of the user whose password is being changed.
void setLogonPasswordVerify(java.lang.String strNewPasswrdVerify)
Sets the confirm new password of the user whose password is being changed.
void setRedirectURL(java.lang.String strRedirectURL)
Sets the URL to which the user should be redirected after successful password reset.
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright field.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
Command name.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
Default command implementation class.
See Also:
Constant Field Values
Method Detail

setChallengeAnswer

public void setChallengeAnswer(java.lang.String strChallengeAnswer)
Sets the answer to the challenge question; used to confirm identity.
Parameters:
strChallengeAnswer - The answer to the challenge question.

setLogonId

public void setLogonId(java.lang.String strLogonId)
Sets the logon ID of the shopper or administrator whose password needs to be reset.

setLogonPassword

public void setLogonPassword(java.lang.String strNewPassword)
Sets the new password of the user whose password is being changed.
Parameters:
strNewPassword - New password.

setLogonPasswordOld

public void setLogonPasswordOld(java.lang.String strOldPassword)
Sets the old password of the user whose password is being changed.
Parameters:
strOldPassword - Old password to be changed.

setLogonPasswordVerify

public void setLogonPasswordVerify(java.lang.String strNewPasswrdVerify)
Sets the confirm new password of the user whose password is being changed.
Parameters:
strNewPasswrdVerify - Confirmation of new password.

setRedirectURL

public void setRedirectURL(java.lang.String strRedirectURL)
Sets the URL to which the user should be redirected after successful password reset.
Parameters:
strRedirectURL - URL which to redirect.

Feedback