com.ibm.commerce.security.commands

Class PaymentManagerVerifyCredentialsCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, PaymentManagerVerifyCredentialsCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    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
    See Also:
    Serialized Form
    • Field Detail

      • ERRTASK_NAME

        public static final java.lang.String ERRTASK_NAME
        Error task name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PaymentManagerVerifyCredentialsCmdImpl

        public PaymentManagerVerifyCredentialsCmdImpl()
    • Method Detail

      • 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.
      • performExecute

        public void performExecute()
                            throws ECException
        Checks to make sure that the password supplied is a valid password hash. Delegates to the VerifyCredentialsCmd to determine if the logonId/ password combination is valid.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • 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.
      • updateLockoutInformation

        public void updateLockoutInformation(boolean valid_credentials)
                                      throws ECException
        Updates the lockout information
        Parameters:
        valid_credentials -
        Throws:
        ECException