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.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
VerifyCredentialsCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthenticateUserId()
This method retrieves the user ID of the logged in user.
|
java.lang.String |
getLogonId()
This method retrieves the logon ID under which the current user wishes to logon.
|
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.
|
void |
setLogonId(java.lang.String strLogonId)
This method sets the logon ID.
|
void |
setPassword(java.lang.String strPassword)
This method sets the password.
|
void |
validateParameters()
This method validates the parameters through ensuring that the
logon ID and password parameters are non-zero length
strings.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String ERRTASK_NAME
public java.lang.String getAuthenticateUserId()
getAuthenticateUserId in interface VerifyCredentialsCmdpublic java.lang.String getLogonId()
getLogonId in interface VerifyCredentialsCmdpublic boolean isValidCredentials()
isValidCredentials in interface VerifyCredentialsCmdpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void setLogonId(java.lang.String strLogonId)
setLogonId in interface VerifyCredentialsCmdstrLogonId - The new value for the logonID parameter.public void setPassword(java.lang.String strPassword)
setPassword in interface VerifyCredentialsCmdstrPassword - The new value for the password parameter.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException