public interface UserService
| Modifier and Type | Method and Description |
|---|---|
BearerTokenBO |
authorise(String login,
String pin,
UserRoleBO role,
String scaId,
String authorisationId)
Verify user credential and produces a corresponding login token.
|
BearerTokenBO |
consentToken(AccessTokenBO accessToken,
AisConsentBO aisConsent)
Provides a token used to gain read access to an account.
|
UserBO |
create(UserBO user)
Creates a new user
|
UserBO |
findById(String id)
Finds a User by its identifier
|
UserBO |
findByLogin(String login)
Finds a User by its login
|
List<UserBO> |
getAll() |
List<UserBO> |
listUsers(int page,
int size) |
AisConsentBO |
loadConsent(String consentId)
Loads a consent given the consent id.
|
BearerTokenBO |
loginToken(AccessTokenBO loginToken,
String authorisationId)
Create a new token for the current user, with a new authorization id
|
BearerTokenBO |
scaToken(AccessTokenBO loginToken)
Create a new token for the current user, after a successfull auth code proces..
|
AisConsentBO |
storeConsent(AisConsentBO consentBO)
Stores a consent in the consent database and returns the original consent
if already existing there.
|
UserBO |
updateAccountAccess(String userLogin,
List<AccountAccessBO> accountAccessListBO) |
UserBO |
updateScaData(List<ScaUserDataBO> scaDataList,
String userLogin)
Update SCA methods by user login
|
BearerTokenBO |
validate(String accessToken,
Date refTime)
Check if the provided token is valid at the given reference time and return the corresponding user.
|
UserBO create(UserBO user) throws UserAlreadyExistsException
user - User business objectUserAlreadyExistsException - is thrown if user already existsBearerTokenBO authorise(String login, String pin, UserRoleBO role, String scaId, String authorisationId) throws UserNotFoundException, InsufficientPermissionException
login - User loginpin - User PINrole - the role of this userscaId - the scaIdauthorisationId - the authorization idUserNotFoundException - is thrown if user can`t be foundInsufficientPermissionException - usder does not have requested roleUserBO findById(String id) throws UserNotFoundException
id - User identifierUserNotFoundException - is thrown if user can`t be foundUserBO findByLogin(String login) throws UserNotFoundException
login - User identifierUserNotFoundException - is thrown if user can`t be foundUserBO updateScaData(List<ScaUserDataBO> scaDataList, String userLogin) throws UserNotFoundException
scaDataList - user methodsuserLogin - user loginUserNotFoundException - no user with given login.UserBO updateAccountAccess(String userLogin, List<AccountAccessBO> accountAccessListBO) throws UserNotFoundException
UserNotFoundExceptionBearerTokenBO validate(String accessToken, Date refTime) throws UserNotFoundException, InsufficientPermissionException
accessToken - the access token to validaterefTime - the reference timeUserNotFoundException - : user is no longer in the database.InsufficientPermissionException - access permissions contained in the token are no longer supported by the user.BearerTokenBO consentToken(AccessTokenBO accessToken, AisConsentBO aisConsent) throws InsufficientPermissionException
accessToken - the token used by the user currently granting permissionaisConsent - the ais consent.InsufficientPermissionException - the current user does not have sufficient permission.BearerTokenBO scaToken(AccessTokenBO loginToken) throws InsufficientPermissionException, UserNotFoundException
loginToken - : the token obtained in the preceeding request.InsufficientPermissionException - : user does not have the required role.UserNotFoundException - : underlying user non longer existent.BearerTokenBO loginToken(AccessTokenBO loginToken, String authorisationId) throws InsufficientPermissionException, UserNotFoundException
loginToken - : the token to cloneauthorisationId - : the authorization id to exchangeInsufficientPermissionException - : user does not have the required role.UserNotFoundException - : underlying user non longer existent.AisConsentBO storeConsent(AisConsentBO consentBO)
consentBO - the consent objectAisConsentBO loadConsent(String consentId) throws ConsentNotFoundException
consentId - the consent idConsentNotFoundExceptionCopyright © 2019. All rights reserved.