public interface MiddlewareOnlineBankingService
| Modifier and Type | Method and Description |
|---|---|
SCALoginResponseTO |
authenticateForLogin(String authorisationId,
String authCode)
PROC: 02c
|
SCALoginResponseTO |
authorise(String login,
String pin,
UserRoleTO role)
Performs user authorization.
|
SCALoginResponseTO |
authoriseForConsent(String login,
String pin,
String consentId,
String authorisationId,
OpTypeTO opType)
Special login associated with a account information, a payment or a payment cancellation consent.
|
SCALoginResponseTO |
generateLoginAuthCode(String scaUserDataId,
String authorisationId,
String userMessage,
int validitySeconds)
After the PSU selects the SCA method, this is called to generate and send the login auth code.
|
UserTO |
register(String login,
String email,
String pin,
UserRoleTO role)
Registers a User.
|
BearerTokenTO |
validate(String accessToken)
Caller can be sure that returned user object contains a mirror of permissions
contained in the token.
|
UserTO register(String login, String email, String pin, UserRoleTO role) throws UserAlreadyExistsMiddlewareException
login - the login of the useremail - the email of the userpin - the pin of this userrole - the initial role of the user.UserAlreadyExistsMiddlewareException - : user with login exists.SCALoginResponseTO authorise(String login, String pin, UserRoleTO role) throws UserNotFoundMiddlewareException, InsufficientPermissionMiddlewareException
login - User loginpin - User PINrole - The intended role.UserNotFoundMiddlewareException - :sis thrown if user can`t be foundInsufficientPermissionMiddlewareException - : permission not sufficientSCALoginResponseTO authoriseForConsent(String login, String pin, String consentId, String authorisationId, OpTypeTO opType) throws UserNotFoundMiddlewareException, InsufficientPermissionMiddlewareException
login - the login of the customerpin - the password of the customerconsentId - the consentId or paymentIdauthorisationId - the authorisationIdopType - the operation typeUserNotFoundMiddlewareException - :sis thrown if user can`t be foundInsufficientPermissionMiddlewareException - : permission not sufficientBearerTokenTO validate(String accessToken) throws UserNotFoundMiddlewareException, InsufficientPermissionMiddlewareException
accessToken - : the access tokenUserNotFoundMiddlewareException - : user not found in db.InsufficientPermissionMiddlewareException - : token contains more permission than the assigned to the user in the database.SCALoginResponseTO generateLoginAuthCode(String scaUserDataId, String authorisationId, String userMessage, int validitySeconds) throws SCAOperationNotFoundMiddlewareException, InsufficientPermissionMiddlewareException, SCAMethodNotSupportedMiddleException, UserScaDataNotFoundMiddlewareException, SCAOperationValidationMiddlewareException
After the PSU selects the SCA method, this is called to generate and send the login auth code.
scaUserDataId - scaMethodauthorisationId - the id of the auth processuserMessage - message to uservaliditySeconds - validity in secondn.SCAOperationNotFoundMiddlewareException - op not foundInsufficientPermissionMiddlewareException - : missing permissionsSCAMethodNotSupportedMiddleException - if user sca method doesn't support by ledgersUserScaDataNotFoundMiddlewareException - if sca user data not found by idSCAOperationValidationMiddlewareException - : inputs not validSCALoginResponseTO authenticateForLogin(String authorisationId, String authCode) throws SCAOperationNotFoundMiddlewareException, SCAOperationValidationMiddlewareException, SCAOperationExpiredMiddlewareException, SCAOperationUsedOrStolenMiddlewareException, InsufficientPermissionMiddlewareException
This is called when the user enters the received code.
authorisationId - : the operation idauthCode - the auth code.SCAOperationNotFoundMiddlewareException - : operation not found.SCAOperationValidationMiddlewareException - : input data not valid.SCAOperationExpiredMiddlewareException - : expiredSCAOperationUsedOrStolenMiddlewareException - : malicious inputInsufficientPermissionMiddlewareException - : not enough permissions.Copyright © 2019. All rights reserved.