java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.security.commands.VerifyCredentialsCmdImpl
Updates the input credentials in either the database, LDAP, or third party system depending on how the WCS system is configured.
Before executing this task command, the methods listed below must be invoked.
setLogonId setPasswordAfter execution, the isValidCredentials method should be called to see whether the credentials were valid or not.
Error View Task: VerifyCredentialsErrorView
Field Summary | |
---|---|
static java.lang.String |
ERRTASK_NAME Error task name. |
protected
java.lang.String |
istrAuthenticateUserId userId for authenticated user. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.security.commands. VerifyCredentialsCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
VerifyCredentialsCmdImpl() |
Method Summary | |
---|---|
java.lang.String |
getAuthenticateUserId() Retrieves the userId of the logged in user. |
protected
java.lang.String |
getEncipheredMerchantKey() Retrieves the enciphered merchant key to be used in the authentication process. |
java.lang.String |
getLogonId() Retrieves the logon ID under which the current user wishes to logon. |
protected
java.lang.String |
getPassword() Retrieves the password to be used 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() Executes the command. |
void |
setLogonId(java.lang.String strLogonId) Set the logonId. |
void |
setPassword(java.lang.String strPassword) Set the password. |
void |
validateParameters() Validate the parameters. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String ERRTASK_NAME
protected java.lang.String istrAuthenticateUserId
Constructor Detail |
---|
public VerifyCredentialsCmdImpl()
Method Detail |
---|
public java.lang.String getAuthenticateUserId()
getAuthenticateUserId
in interface
VerifyCredentialsCmd
protected java.lang.String getEncipheredMerchantKey()
public java.lang.String getLogonId()
getLogonId
in interface
VerifyCredentialsCmd
protected java.lang.String getPassword()
public boolean isValidCredentials()
isValidCredentials
in interface
VerifyCredentialsCmd
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void setLogonId(java.lang.String strLogonId)
setLogonId
in interface
VerifyCredentialsCmd
strLogonId
- The new value for the logonId
parameter.public void setPassword(java.lang.String strPassword)
setPassword
in interface
VerifyCredentialsCmd
strPassword
- The new value for the password
parameter.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException