authenticate(final Long, final AuthenticationMethodComputation, final ITransactionCredential, final Long) method

Syntax

ConsumerAuthenticationResult authenticate ( final Long authId , final AuthenticationMethodComputation computeRules , final ITransactionCredential credential , final Long actorId ) throws MobiliserServiceException, DataAccessException, TransactionException

Parameters

Returns

the result of the authentication

Exceptions

Usage

Authenticate the

Authorisation

based on the previously computed authentication method.

Notes on transactional semantics:

If a business logic exception occurs, a

MobiliserServiceException

will be thrown and the

Authorisation

and the main

Transaction

will be marked with the error code from the exception and the database transaction committed. Any other exception will trigger a rollback of the database transaction followed by a fresh transaction inside of which the

Authorisation

and the main

Transaction

will be marked with an error code.

the result of the authentication