public class UpdateCredentialsCmdImpl extends TaskCommandImpl implements UpdateCredentialsCmd
This command takes the input credentials and updates them in either the database, the LDAP server, or a third-party system. The WebSphere Commerce server configuration determines which system to update.
Before executing this task command, the methods listed below must be invoked.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | ERRTASK_NAME
Error task name.
|
Constructor and Description |
---|
UpdateCredentialsCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void | authenticationByDB()
This method authenticate current user through DB
|
protected 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.
|
protected java.lang.String | getWorkingUserId()
This method retrieves the working user ID under which the current user wishes to logon.
|
protected boolean | isPasswordTemporary()
This method indicates whether the password is temporary or not.
|
void | markPasswordTemporary()
Call this method to indicate that the updated password is temporary.
|
void | performExecute()
This method executes the command by updating the security credentials in LDAP, database, or third party authentication repository.
|
void | setLogonId(java.lang.String strLogonId)
This method sets the logon ID of the user whose password is to be updated.
|
void | setPassword(java.lang.String strPassword)
This method sets the value of the new password.
|
void | setWorkingUserId(java.lang.String strWorkingUserId)
This method sets the working user ID of the user whose password is to be updated.
|
void | validateParameters()
This method validates the parameters by ensuring that the logonID and password are non-zero length strings.
|
public static final java.lang.String ERRTASK_NAME
protected java.lang.String getLogonId()
protected java.lang.String getPassword()
protected java.lang.String getWorkingUserId()
protected boolean isPasswordTemporary()
public void markPasswordTemporary()
public void performExecute() throws ECException
public void setLogonId(java.lang.String strLogonId)
public void setPassword(java.lang.String strPassword)
public void setWorkingUserId(java.lang.String strWorkingUserId)
public void validateParameters() throws ECException
public void authenticationByDB() throws ECException