public interface DBProcurementAuthenticationCmd extends TaskCommand
A requisitioner is a user of the Business Direct buyer organization. Upon requisitioner logon of the supplier system, this task command will perform either an authentication or an update. This task command runs only if the server is configured to authenticate against the database.
Before executing this task command the following operation set should be performed:
If the setUpdateFlag method is called, upon execution of this task command, the credentials set are updated in the database.
If the setUpdateFlag method is not called, 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().
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright field
|
static java.lang.String | defaultCommandClassName
Name of the default implementation of this command
|
static java.lang.String | NAME
The name of this interface
|
Modifier and Type | Method and Description |
---|---|
long | getBuyerId()
If isValidCredentilas() returns true (if the command is successful), this method can be called to get the buyer organization ID.
|
int | getErrorCode()
If isValidCredentilas() returns false (if the command fails), this method can be called to get the error code.
|
long | getSupplierId()
If isValidCredentilas() returns true (if the command is successful), this method can be called to get the supplier organization ID.
|
boolean | isValidCredentials()
After this task command executes, a boolean result flag is set to indicate if authentication succeeds.
|
void | setAuthenticationType(int authenticationType)
This method sets the authentication level.
|
void | setBuyerCredentials(Credentials buyerCredentials)
This method sets the buyer credentials under which the current B2B user wishes to logon.
|
void | setMarketPlaceBuyerCredentials(Credentials mpBuyerCredentials)
Use this method if the buyer comes from a marketplace and wants to be authenticated against the marketplace credentials.
|
void | setMerchantKey(java.lang.String strMerchantKey)
This method sets the Merchant Key to use in the encryption of the password.
|
void | setSupplierCredentilas(Credentials supplierCredentials)
This method sets the supplier credentials for the store to which the buyer wants to connect.
|
void | setUpdateFlag()
This method is called to indicate the credentials should be set in the database, instead of performing verification on the credentials.
|
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
long getBuyerId()
int getErrorCode()
long getSupplierId()
boolean isValidCredentials()
void setAuthenticationType(int authenticationType)
void setBuyerCredentials(Credentials buyerCredentials)
void setMarketPlaceBuyerCredentials(Credentials mpBuyerCredentials)
void setMerchantKey(java.lang.String strMerchantKey)
void setSupplierCredentilas(Credentials supplierCredentials)
void setUpdateFlag()