public interface DBAuthenticationCmd extends TaskCommand
If the server is configured to authenticate against the database, this task command is called to perform either an authentication or an update.
Before running this task command, the methods listed below must be invoked.
setMerchantKey setLogonId setPassword
If the setUpdateFlag is called, then 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, call isValidCredentials.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The copyright field.
|
static java.lang.String | defaultCommandClassName
The default command implementation class.
|
static java.lang.String | NAME
The command name.
|
Modifier and Type | Method and Description |
---|---|
boolean | isValidCredentials()
Sets a boolean result flag to indicate if the authentication was successful.
|
void | markPasswordAsTemporary()
Call this method to indicate that the updated password is temporary.
|
void | setEncipheredMerchantKey(java.lang.String strEncipheredMerchantKey)
Deprecated.
Retrieve the merchantkey by first calling ConfigProperties.singleton().getMerchantKey() and then call setMerchantKey(String) to set the merchant key to be used by the command.
|
void | setLogonId(java.lang.String strLogonId)
Sets the logon ID under which the current user wishes to logon.
|
void | setPassword(java.lang.String strPassword)
Sets the password to be used for authentication with the new logon ID.
|
void | setUpdateFlag()
Call this method to indicate that instead of performing verification of the credentials, the credentials should be set in the database.
|
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
boolean isValidCredentials()
void markPasswordAsTemporary()
void setEncipheredMerchantKey(java.lang.String strEncipheredMerchantKey)
void setLogonId(java.lang.String strLogonId)
void setPassword(java.lang.String strPassword)
void setUpdateFlag()