public class VerifyCredentialsCmdImpl extends TaskCommandImpl implements VerifyCredentialsCmd
This command takes the input credentials and updates them in either the database, the LDAP server, or third-party system. Credentials are updated depending on how the WebSphere Commerce server is configured.
Before executing this task command, the methods listed below must be invoked.
Error View Task: VerifyCredentialsErrorView
Modifier and Type | Field and Description |
---|---|
static java.lang.String | ERRTASK_NAME
Error task name.
|
protected java.lang.String | istrAuthenticateUserId
userId for authenticated user.
|
Constructor and Description |
---|
VerifyCredentialsCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | authenticationByDB()
This method authenticate current user through DB
|
java.lang.String | getAuthenticateUserId()
This method retrieves the user ID of the logged in user.
|
protected java.lang.String | getEncipheredMerchantKey()
This method retrieves the enciphered merchant key to use in the authentication process.
|
java.lang.String | getLogonId()
This method retrieves the logon ID under which the current user wishes to logon.
|
protected java.lang.String | getPassword()
This method retrieves the password to use for authentication with the new logon ID.
|
boolean | isValidCredentials()
After the this command task is executed, a boolean result flag will be set to indicate if the authentication was successful.
|
void | performExecute()
This method executes the command through updating the credentials in either LDAP, the database, or a third-party authentication repository.
|
protected void | resetPasswordGuest()
Calls ResetPasswordGuestCmd to reset password for a guest shopper.
|
protected boolean | resetPasswordRequired(java.lang.String astrLogonId)
Checks if it requires to reset password.
|
void | setLogonId(java.lang.String strLogonId)
This method sets the logon ID.
|
void | setPassword(java.lang.String strPassword)
This method sets the password.
|
protected void | throwPasswordResetException()
This method always throws an ECApplicationException with an error code 2430.
|
void | validateParameters()
This method validates the parameters through ensuring that the logon ID and password parameters are non-zero length strings.
|
public static final java.lang.String ERRTASK_NAME
protected java.lang.String istrAuthenticateUserId
public java.lang.String getAuthenticateUserId()
protected java.lang.String getEncipheredMerchantKey()
public java.lang.String getLogonId()
protected java.lang.String getPassword()
public boolean isValidCredentials()
public void performExecute() throws ECException
public void setLogonId(java.lang.String strLogonId)
public void setPassword(java.lang.String strPassword)
public void validateParameters() throws ECException
protected void resetPasswordGuest() throws ECException
protected boolean resetPasswordRequired(java.lang.String astrLogonId)
protected void throwPasswordResetException() throws ECApplicationException
protected void authenticationByDB() throws ECException