com.ibm.commerce.security.commands
Class PaymentManagerVerifyCredentialsCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.security.commands.PaymentManagerVerifyCredentialsCmdImpl
- All Implemented Interfaces:
- ECCommand, PaymentManagerVerifyCredentialsCmd, TaskCommand
- public class PaymentManagerVerifyCredentialsCmdImpl
- extends TaskCommandImpl
- implements PaymentManagerVerifyCredentialsCmd
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
setPassword
After execution the isValidCredentials command should be called to see whether
the credentials were valid or not.
Error View Task: VerifyCredentialsErrorView
Method Summary |
protected static byte[] |
formatPassword(byte[] bytePassword)
|
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()
|
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
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()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
ERRTASK_NAME
public static final java.lang.String ERRTASK_NAME
PaymentManagerVerifyCredentialsCmdImpl
public PaymentManagerVerifyCredentialsCmdImpl()
formatPassword
protected static byte[] formatPassword(byte[] bytePassword)
getLogonId
public java.lang.String getLogonId()
- Retrieve the Logon ID under which the current user wishes to logon.
- Specified by:
getLogonId
in interface PaymentManagerVerifyCredentialsCmd
- Returns:
- The Logon ID.
getMerchantKey
protected java.lang.String getMerchantKey()
- Retrieves the Merchant Key to be used in the authentication
process.
- Returns:
- The Merchant Key.
getPassword
protected java.lang.String getPassword()
- Retrieve the Password to be used for authentication with the
new Logon ID.
- Returns:
- The Password.
getUserRegistryAccessBean
public UserRegistryAccessBean getUserRegistryAccessBean()
- Retrieve the UserRegistryAccessBean to be used for authentication with the
new Logon ID.
- Specified by:
getUserRegistryAccessBean
in interface PaymentManagerVerifyCredentialsCmd
- Returns:
- The UserRegistryAccessBean.
isValidCredentials
public boolean isValidCredentials()
- After the this command task is executed, a boolean result flag will be
set to indicate if the authentication was successful. This method will
return the this result flag to indicate if the authentication was
successful.
- Specified by:
isValidCredentials
in interface PaymentManagerVerifyCredentialsCmd
- Returns:
- True if authentication was successful.
isValidPasswordHash
protected boolean isValidPasswordHash()
throws ECException
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setLogonId
public void setLogonId(java.lang.String strLogonId)
- Sets the Logon ID under which the current user wishes to logon.
- Specified by:
setLogonId
in interface PaymentManagerVerifyCredentialsCmd
- Parameters:
strLogonID
- The Login ID.
setPassword
public void setPassword(java.lang.String strPassword)
- Sets the Password to be used for authentication with the
new Logon ID.
- Specified by:
setPassword
in interface PaymentManagerVerifyCredentialsCmd
- Parameters:
strPassword
- The Password.
validateParameters
public void validateParameters()
throws ECException
- Description copied from interface:
ECCommand
- Performs server side parameter checking. This method replaces the checkParameters() method in a previous
version of the code.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-