public interface LdapAuthenticationCmd extends TaskCommand
This task command will authenticate requisitioners (users of a B2B buyer organization) against LDAP. This task command will be called to perform either authentication or an update. This command will only be called if the server is configured to authenticate against LDAP.
Before executing this task command the following setups should be performed:
setAuthenticationLevel setBuyerCredentials setMarketPlaceBuyerCredentials setSupplierCredentilas setMerchantKey setUpdateFlag
If the setUpdateFlag is called, upon execution of this task command, the credentials set are updated in the database.
If the setUpdateFlag 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
class name
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
If the isValidCredentials() returns false (if authentication fails)
then this method can be called to get the error code.
|
boolean |
isValidCredentials()
After this command task is executed, a boolean result flag is
set to indicate if authentication succeeds.
|
void |
setAuthenticationLevel(int authenticationLevel)
This method sets the authentication level (See
B2BLogonCmd for details about
against which credentials the buyer and supplier are validated.) |
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 instead of performing verification of
the credentials, the credentials should be set in the database.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
int getErrorCode()
boolean isValidCredentials()
void setAuthenticationLevel(int authenticationLevel)
B2BLogonCmd
for details about
against which credentials the buyer and supplier are validated.)authenticationLevel
- the new authentication levelvoid setBuyerCredentials(Credentials buyerCredentials)
buyerCredentials
- the new buyer credential informationvoid setMarketPlaceBuyerCredentials(Credentials mpBuyerCredentials)
mpBuyerCredentials
- the marketplace buyer credentialvoid setMerchantKey(java.lang.String strMerchantKey)
strMerchantKey
- the Merchant Key.void setSupplierCredentilas(Credentials supplierCredentials)
supplierCredentials
- the supplier credential informationvoid setUpdateFlag()