public interface SCAOperationService
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticationCompleted(String opId,
OpTypeBO opType)
Return true if all authorization instances of this operation are validated.
|
SCAOperationBO |
createAuthCode(AuthCodeDataBO authCodeData,
ScaStatusBO scaStatus)
Creates an authCodeData object.
|
SCAOperationBO |
generateAuthCode(AuthCodeDataBO authCodeData,
UserBO user,
ScaStatusBO scaStatus)
Generates an authentication code, hashes it using the operation data and stores
the hash for later verification.
|
SCAOperationBO |
loadAuthCode(String authorizationId)
Load an auth code data object from the database.
|
void |
processExpiredOperations()
All operations that have status NEW will be changed on EXPIRED if date of creation + validitySeconds in the past,
unless validitySeconds is -1;
|
boolean |
validateAuthCode(String authorisationId,
String opId,
String opData,
String authCode)
Verify that the auth code, recomputing and verifying the hash of (Auth Code and opData).
|
SCAOperationBO generateAuthCode(AuthCodeDataBO authCodeData, UserBO user, ScaStatusBO scaStatus) throws SCAMethodNotSupportedException, UserScaDataNotFoundException, SCAOperationValidationException, SCAOperationNotFoundException
authCodeData - : data for generation auth codeuser - : the user objectscaStatus - : the actual scaStatus to be set if auth code is generated and sent.SCAMethodNotSupportedExceptionUserScaDataNotFoundExceptionSCAOperationNotFoundExceptionSCAOperationValidationExceptionboolean validateAuthCode(String authorisationId, String opId, String opData, String authCode) throws SCAOperationNotFoundException, SCAOperationValidationException, SCAOperationUsedOrStolenException, SCAOperationExpiredException
authorisationId - : the id of this authorization instance.opId - : This is the id of the operation like provided by the consuming module.opData - : This are data to be linked to the generated One Time Password.authCode - : This auth code was generated at previous step @see #generateAuthCode(String opId, String opData, int validitySeconds)SCAOperationNotFoundExceptionSCAOperationValidationExceptionSCAOperationUsedOrStolenExceptionSCAOperationExpiredExceptionvoid processExpiredOperations()
SCAOperationBO createAuthCode(AuthCodeDataBO authCodeData, ScaStatusBO scaStatus)
authCodeData - : data for generation auth codescaStatus - : the actual scaStatus to be set.SCAOperationBO loadAuthCode(String authorizationId) throws SCAOperationNotFoundException
authorizationId - SCAOperationNotFoundExceptionCopyright © 2019. All rights reserved.