com.ibm.commerce.security.commands
Class VerifyCredentialsCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.security.commands.VerifyCredentialsCmdImpl
- All Implemented Interfaces:
- ECCommand, TaskCommand, VerifyCredentialsCmd
- public class VerifyCredentialsCmdImpl
- extends TaskCommandImpl
- implements VerifyCredentialsCmd
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
setPassword
After execution, the isValidCredentials method should be called to see whether
the credentials were valid or not.
Error View Task: VerifyCredentialsErrorView
Method Summary |
java.lang.String |
getAuthenticateUserId()
Retrieves the user ID 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()
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
istrAuthenticateUserId
protected java.lang.String istrAuthenticateUserId
VerifyCredentialsCmdImpl
public VerifyCredentialsCmdImpl()
getAuthenticateUserId
public java.lang.String getAuthenticateUserId()
- Description copied from interface:
VerifyCredentialsCmd
- Retrieves the user ID of the logged in user.
- Specified by:
getAuthenticateUserId
in interface VerifyCredentialsCmd
- Following copied from interface:
com.ibm.commerce.security.commands.VerifyCredentialsCmd
- Returns:
- The user ID.
getEncipheredMerchantKey
protected java.lang.String getEncipheredMerchantKey()
- Retrieves the enciphered merchant key to be used in the authentication
process.
- Returns:
- The enciphered merchant key.
getLogonId
public java.lang.String getLogonId()
- Description copied from interface:
VerifyCredentialsCmd
- Retrieves the logon ID under which the current user wishes to logon.
- Specified by:
getLogonId
in interface VerifyCredentialsCmd
- Following copied from interface:
com.ibm.commerce.security.commands.VerifyCredentialsCmd
- Returns:
- The logon ID.
getPassword
protected java.lang.String getPassword()
- Retrieves the password to be used for authentication with the
new logon ID.
- Returns:
- The password.
isValidCredentials
public boolean isValidCredentials()
- Description copied from interface:
VerifyCredentialsCmd
- After the this command task is executed, a boolean result flag will be
set to indicate if the authentication was successful. This method returns
this result flag to indicate if the authentication was successful.
- Specified by:
isValidCredentials
in interface VerifyCredentialsCmd
- Following copied from interface:
com.ibm.commerce.security.commands.VerifyCredentialsCmd
- Returns:
- True if authentication was successful.
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)
- Description copied from interface:
VerifyCredentialsCmd
- Sets the logon ID under which the current user wishes to logon.
- Specified by:
setLogonId
in interface VerifyCredentialsCmd
- Following copied from interface:
com.ibm.commerce.security.commands.VerifyCredentialsCmd
- Parameters:
strLogonID
- The login ID.
setPassword
public void setPassword(java.lang.String strPassword)
- Description copied from interface:
VerifyCredentialsCmd
- Sets the password to be used for authentication with the
new logon ID.
- Specified by:
setPassword
in interface VerifyCredentialsCmd
- Following copied from interface:
com.ibm.commerce.security.commands.VerifyCredentialsCmd
- 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.
-