com.ibm.commerce.security.commands

Class VerifyCredentialsCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, VerifyCredentialsCmd, 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 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

      • ERRTASK_NAME

        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
        Returns:
        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
        Returns:
        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
        Returns:
        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 com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • setLogonId

        public void setLogonId(java.lang.String strLogonId)
        This method sets the logon ID.
        Specified by:
        setLogonId in interface VerifyCredentialsCmd
        Parameters:
        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
        Parameters:
        strPassword - The new value for the password parameter.