Syntax
ConsumerAuthenticationResult
initConsumerAuthentication
(
final SubTransaction
txn
,
final Integer
payeeAuthenticationMethod
,
final Integer
payerAuthenticationMethod
) throws MobiliserServiceException
Parameters
-
txn –
the transaction to authenticate
-
payeeAuthenticationMethod –
the auth method for the payee
-
payerAuthenticationMethod –
the auth method for the payer
Returns
ConsumerAuthenticationResultthe result of the authentication:
- FAILED_BOTH: authentication is asynchronous for both participants
- FAILED_PAYER: authentication is asynchronous for payee
- FAILED_PAYEE: authentication is asynchronous for payer
Exceptions
-
MobiliserServiceException –
if computing the initialisation fails final
Usage
Performs the appropriate transaction authentication initialization with the affected consumers. If the call does not return success, one of the participants authentication is asynchronous and the transaction processing should wait/stop until the transaction processing can be picked up with the new participants auth token in the request
ConsumerAuthenticationResultthe result of the authentication:
- FAILED_BOTH: authentication is asynchronous for both participants
- FAILED_PAYER: authentication is asynchronous for payee
- FAILED_PAYEE: authentication is asynchronous for payer