@Service public class ConsentService extends Object
| Constructor and Description |
|---|
ConsentService() |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<CreateConsentResponse> |
createAccountConsentsWithResponse(CreateConsentReq request,
PsuIdData psuData,
boolean explicitPreferred,
TppRedirectUri tppRedirectUri)
Performs create consent operation either by filling the appropriate AccountAccess fields with corresponding
account details or by getting account details from ASPSP by psuId and filling the appropriate fields in
AccountAccess determined by availableAccounts or allPsd2 variables
|
ResponseObject<AuthorisationResponse> |
createAisAuthorisation(PsuIdData psuData,
String consentId,
String password)
Creates new authorisation for given consent and updates it if PSU Data or password are present in the request
|
ResponseObject<Void> |
deleteAccountConsentsById(String consentId)
Terminates account consent on PSU request
|
ResponseObject<AccountConsent> |
getAccountConsentById(String consentId)
Returns account consent by its id
|
ResponseObject<ConsentStatusResponse> |
getAccountConsentsStatusById(String consentId)
Returns status of requested consent
|
ResponseObject<ScaStatus> |
getConsentAuthorisationScaStatus(String consentId,
String authorisationId)
Gets SCA status of consent authorisation
|
ResponseObject<Xs2aAuthorisationSubResources> |
getConsentInitiationAuthorisations(String consentId) |
ResponseObject<UpdateConsentPsuDataResponse> |
updateConsentPsuData(UpdateConsentPsuDataReq updatePsuData) |
public ResponseObject<CreateConsentResponse> createAccountConsentsWithResponse(CreateConsentReq request, PsuIdData psuData, boolean explicitPreferred, TppRedirectUri tppRedirectUri)
request - body of create consent request carrying such parameters as AccountAccess, validity terms etc.psuData - PsuIdData container of authorisation data about PSUexplicitPreferred - is TPP explicit authorisation preferredtppRedirectUri - URI for redirect SCA approachpublic ResponseObject<ConsentStatusResponse> getAccountConsentsStatusById(String consentId)
consentId - String representation of AccountConsent identificationpublic ResponseObject<Void> deleteAccountConsentsById(String consentId)
consentId - String representation of AccountConsent identificationpublic ResponseObject<AccountConsent> getAccountConsentById(String consentId)
consentId - String representation of AccountConsent identificationpublic ResponseObject<AuthorisationResponse> createAisAuthorisation(PsuIdData psuData, String consentId, String password)
psuData - PSU authorisation data, can be emptyconsentId - String representation of AccountConsent identificationpassword - PSU password, can be omittedpublic ResponseObject<UpdateConsentPsuDataResponse> updateConsentPsuData(UpdateConsentPsuDataReq updatePsuData)
public ResponseObject<Xs2aAuthorisationSubResources> getConsentInitiationAuthorisations(String consentId)
public ResponseObject<ScaStatus> getConsentAuthorisationScaStatus(String consentId, String authorisationId)
consentId - String representation of consent identifierauthorisationId - String representation of authorisation identifierCopyright © 2019. All rights reserved.