Interface ThirdPartyB2BAuthCmd

  • All Superinterfaces:,,,, ECCommand,,, TaskCommand

    public interface ThirdPartyB2BAuthCmd
    extends TaskCommand

    A requisitioner is a user of a B2B buyer organization. When a requisitioner logs on the supplier system, this task command will be called to perform either authentication or an update. This only occurs if the server is configured to authenticate against a third party system.

    Before executing this task command the following setter methods should be called:


    If the setUpdateFlag is called then, then upon execution of this task command, the credentials set are updated in the database.

    If the setUpdateFlag is not called then, upon execution of this task command, verification of the credentials is performed. To determine whether the authentication was successful a call should be made to isValidCredentials(). Creation date: (2/27/01 3:35:09 PM)

    • Field Detail

      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        name of the default implementation of this command
        See Also:
        Constant Field Values
    • Method Detail

      • getErrorCode

        int getErrorCode()
        If isValidCredentials() returns false (for example, the command fails) then this method can be called to get the error code. This is required as the B2B scenario needs to know the exact reason for each authentication failure.
        True if authentication was successful.
      • isValidCredentials

        boolean isValidCredentials()
        After the this command task is executed, a boolean result flag is set to indicate if authentication succeeds. This method will return the this result flag to indicate the authentication status
        True if authentication succeeds.
      • setBuyerCredentials

        void setBuyerCredentials(Credentials buyerCredentials)
        This method sets the buyer credentials under which the current B2B user wishes to logon.
        Parameters: - buyerCredentials.
      • setMarketPlaceBuyerCredentials

        void setMarketPlaceBuyerCredentials(Credentials mpBuyerCredentials)
        Use this method if the buyer comes from a marketplace and wants to be authenticated against the marketplace credentials. This method will set the marketplace buyer credentials under which the current B2B user wishes to logon.
        Parameters: - marketPlaceBuyerCredentials.
      • setSupplierCredentilas

        void setSupplierCredentilas(Credentials supplierCredentials)
        This method sets the supplier credentials for the store that the buyer wants to connect.
        Parameters: - supplierCredentials.
      • setUpdateFlag

        void setUpdateFlag()
        This method is called to indicate the credentials should be set in the database instead of verified.