com.ibm.commerce.security.commands

Class UpdateCredentialsCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, UpdateCredentialsCmd, 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 UpdateCredentialsCmdImpl
    extends TaskCommandImpl
    implements UpdateCredentialsCmd

    This command takes the input credentials and updates them in either the database, the LDAP server, or a third-party system. The WebSphere Commerce server configuration determines which system to update.

    Before executing this task command, the methods listed below must be invoked.

    • setLogonId
    • setPassword
    Error View Task: UpdateCredentialsCredentialsErrorView
    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

      • UpdateCredentialsCmdImpl

        public UpdateCredentialsCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        This method executes the command by updating the security credentials in LDAP, database, or third party authentication repository. Credentials are updated depending on how the WebSphere Commerce server is configured.
        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 of the user whose password is to be updated.
        Specified by:
        setLogonId in interface UpdateCredentialsCmd
        Parameters:
        strLogonId - The login ID
      • setPassword

        public void setPassword(java.lang.String strPassword)
        This method sets the value of the new password.
        Specified by:
        setPassword in interface UpdateCredentialsCmd
        Parameters:
        strPassword - The password.
      • setWorkingUserId

        public void setWorkingUserId(java.lang.String strWorkingUserId)
        This method sets the working user ID of the user whose password is to be updated.
        Specified by:
        setWorkingUserId in interface UpdateCredentialsCmd
        Parameters:
        strWorkingUserId - The working user ID.
      • authenticationByDB

        public void authenticationByDB()
                                throws ECException
        This method authenticate current user through DB
        Throws:
        ECException