Invoked by the B2BLogon command to authenticate a b2b buyer.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
defaultCommandClassName Name of the default implementation of this command |
static java.lang.String |
NAME Class name |
Method Summary | |
---|---|
Credentials |
getBuyerCredentials() Gets the buyer credential information which stores the buyer organizations code, code type, user id and password |
long |
getBuyerId() If the isValidCredentilas() returns true (ie. |
int |
getErrorCode() If the isValidCredentilas() returns false (ie. |
SessionInfo |
getSessionInfo() Gets the sessionInfo (information pertaining to requisitioner registration) |
Credentials |
getSupplierCredentials() Gets the supplier credential information which stores the supplier organizations code, code type, user id and password |
long |
getSupplierId() If the isValidCredentilas() returns true (ie. |
boolean |
isValidCredentials() After the task commands are executed, a boolean result flag will be set to indicate if the authentication was successful. |
void |
setAuthType(int authType) Sets the authentication type |
void |
setBuyerCredentials(
Credentials buyerCredentials) Sets the buyer credentials under which the current B2B user wishes to logon. |
void |
setLogonMode(short logonMode) Sets the logon mode |
void |
setMarketPlaceBuyerCredentials(
Credentials mpBuyerCredentials) In case the buyer comes from a marketplace and wants to be authenticated against the marketplace credentials, use this method. |
void |
setProtocolId(java.lang.Integer protocolId) Sets the protocol id |
void |
setSessionInfo(
SessionInfo sessionInfo) Sets the sessionInfo (information pertaining to requisitioner registration) |
void |
setSupplierCredentials(
Credentials supplierCredentials) Sets the supplier credentials for the store to which the buyer want to connect. |
void |
setUpdateFlag()
This method is called to indicate instead of performing verification
of the credentials, the credentials should be set in the
database. |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public Credentials getBuyerCredentials()
public long getBuyerId()
isValidCredentilas()
returns true (ie. if the command
is successful) then this method can be called to get the buyer organization id.
public int getErrorCode()
isValidCredentilas()
returns false (ie. if
authentication failed) then this method can be called to get the error code.
This is required because in the B2B scenario we need to know what is the exact
reason for which athentication failed.
public SessionInfo getSessionInfo()
public Credentials getSupplierCredentials()
public long getSupplierId()
isValidCredentilas()
returns true (ie. if the command
is successful) then this method can be called to get the supplier organization
id.
public boolean isValidCredentials()
public void setAuthType(int authType)
public void setBuyerCredentials(Credentials buyerCredentials)
buyerCredentials
- the buyer credentialpublic void setLogonMode(short logonMode)
logonMode
- the new logon modepublic void setMarketPlaceBuyerCredentials(Credentials mpBuyerCredentials)
mpBuyerCredentials
- the marketspace buyer
credentialpublic void setProtocolId(java.lang.Integer protocolId)
public void setSessionInfo(SessionInfo sessionInfo)
sessionInfo
- the session information pertaining to
requisitioner registrationpublic void setSupplierCredentials(Credentials supplierCredentials)
supplierCredentials
- the supplier
credentialpublic void setUpdateFlag()