java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.security.commands.PaymentManagerVerifyCredentialsCmdImpl
This command will take the input credentials and update them in either the database, LDAP, or third party system depending on how the WCS system was configured.
Before executing this task command the following sets should be performed:
setLogonId setPasswordAfter execution the isValidCredentials command 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. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.security.commands. PaymentManagerVerifyCredentialsCmd |
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 | |
---|---|
PaymentManagerVerifyCredentialsCmdImpl() |
Method Summary | |
---|---|
protected
static byte[] |
formatPassword(byte[] bytePassword) Formats the password supplied. |
java.lang.String |
getLogonId() Retrieve the Logon ID under which the current user wishes to logon. |
protected
java.lang.String |
getMerchantKey() Retrieves the Merchant Key to be used in the authentication process. |
protected
java.lang.String |
getPassword() Retrieve the Password to be used for authentication with the new Logon ID. |
UserRegistryAccessBean |
getUserRegistryAccessBean() Retrieve the UserRegistryAccessBean 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. |
protected
boolean |
isValidPasswordHash() Method isValidPasswordHash. |
void |
performExecute() Checks to make sure that the password supplied is a valid password password hash, then delegates to the VerifyCredentialsCmd to determine if the logonId/ password combination is valid. |
void |
setLogonId(java.lang.String strLogonId) Sets the Logon ID under which the current user wishes to logon. |
void |
setPassword(java.lang.String strPassword) Sets the Password to be used for authentication with the new Logon ID. |
void |
validateParameters() Validates 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
Constructor Detail |
---|
public PaymentManagerVerifyCredentialsCmdImpl()
Method Detail |
---|
protected static byte[] formatPassword(byte[] bytePassword)
bytePassword
- Unformatted password.public java.lang.String getLogonId()
getLogonId
in interface
PaymentManagerVerifyCredentialsCmd
protected java.lang.String getMerchantKey()
protected java.lang.String getPassword()
public UserRegistryAccessBean getUserRegistryAccessBean()
getUserRegistryAccessBean
in interface
PaymentManagerVerifyCredentialsCmd
public boolean isValidCredentials()
isValidCredentials
in interface
PaymentManagerVerifyCredentialsCmd
protected boolean isValidPasswordHash() throws ECException
ECException
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void setLogonId(java.lang.String strLogonId)
setLogonId
in interface
PaymentManagerVerifyCredentialsCmd
public void setPassword(java.lang.String strPassword)
setPassword
in interface
PaymentManagerVerifyCredentialsCmd
strPassword
- The Password.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException