Class VerifyCredentialsCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, VerifyCredentialsCmd,,,,,,

    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.

    • setLogonId
    • setPassword
    After execution, call the isValidCredentials command to check if the credentials are valid or not.

    Error View Task: VerifyCredentialsErrorView

    See Also:
    Serialized Form
    • Field Detail


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

      • VerifyCredentialsCmdImpl

        public VerifyCredentialsCmdImpl()
    • Method Detail

      • getAuthenticateUserId

        public java.lang.String getAuthenticateUserId()
        This method retrieves the user ID of the logged in user.
        Specified by:
        getAuthenticateUserId in interface VerifyCredentialsCmd
        The userId.
      • getLogonId

        public java.lang.String getLogonId()
        This method retrieves the logon ID under which the current user wishes to logon.
        Specified by:
        getLogonId in interface VerifyCredentialsCmd
        The logon ID.
      • 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 returns this result flag to indicate if the authentication was successful.
        Specified by:
        isValidCredentials in interface VerifyCredentialsCmd
        True if authentication was successful.
      • performExecute

        public void performExecute()
                            throws ECException
        This method executes the command through updating the credentials in either LDAP, the database, or a third-party authentication repository. Credentials are updated depending on the configuration of the WebSphere Commerce server.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
      • setLogonId

        public void setLogonId(java.lang.String strLogonId)
        This method sets the logon ID.
        Specified by:
        setLogonId in interface VerifyCredentialsCmd
        strLogonId - The new value for the logonID parameter.
      • setPassword

        public void setPassword(java.lang.String strPassword)
        This method sets the password.
        Specified by:
        setPassword in interface VerifyCredentialsCmd
        strPassword - The new value for the password parameter.