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, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String ERRTASK_NAME
public java.lang.String getAuthenticateUserId()
getAuthenticateUserId
in interface VerifyCredentialsCmd
public java.lang.String getLogonId()
getLogonId
in interface VerifyCredentialsCmd
public boolean isValidCredentials()
isValidCredentials
in interface VerifyCredentialsCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
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