@Service public class DecoupledAisAuthorizationService extends Object implements AisAuthorizationService
| Constructor and Description |
|---|
DecoupledAisAuthorizationService() |
| Modifier and Type | Method and Description |
|---|---|
Optional<CreateConsentAuthorizationResponse> |
createConsentAuthorization(PsuIdData psuData,
String consentId)
Creates consent authorisation using provided psu id and consent id by invoking CMS through AisConsentService
See
Xs2aAisConsentService.createAisConsentAuthorization(String, ScaStatus, PsuIdData) for details |
AccountConsentAuthorization |
getAccountConsentAuthorizationById(String authorisationId,
String consentId)
Gets AccountConsentAuthorization using provided authorisation id and consent id by invoking CMS through AisConsentService.
|
Optional<ScaStatus> |
getAuthorisationScaStatus(String consentId,
String authorisationId)
Gets SCA status of the authorisation from CMS
|
Optional<Xs2aAuthorisationSubResources> |
getAuthorisationSubResources(String consentId)
Gets list of consent authorisation IDs by invoking CMS through AisConsentService
See
Xs2aAisConsentService.getAuthorisationSubResources(String) for details |
ScaApproach |
getScaApproachServiceType()
Gets SCA approach used in current service
|
UpdateConsentPsuDataResponse |
updateConsentPsuData(UpdateConsentPsuDataReq updatePsuData,
AccountConsentAuthorization consentAuthorization)
Updates consent PSU data.
|
public Optional<CreateConsentAuthorizationResponse> createConsentAuthorization(PsuIdData psuData, String consentId)
Xs2aAisConsentService.createAisConsentAuthorization(String, ScaStatus, PsuIdData) for detailscreateConsentAuthorization in interface AisAuthorizationServicepsuData - PsuIdData container of authorisation data about PSUconsentId - String identification of consentpublic UpdateConsentPsuDataResponse updateConsentPsuData(UpdateConsentPsuDataReq updatePsuData, AccountConsentAuthorization consentAuthorization)
AisScaStageAuthorisationFactory is used there to provide the actual service for current stage.
Service returns UpdateConsentPsuDataResponse on invoking its apply() method
(e.g. see AisScaMethodSelectedStage.apply(de.adorsys.psd2.xs2a.domain.consent.UpdateConsentPsuDataReq)).
If response has no errors, consent authorisation is updated by invoking CMS through AisConsentService
See Xs2aAisConsentService.updateConsentAuthorization(UpdateConsentPsuDataReq) for details.updateConsentPsuData in interface AisAuthorizationServiceupdatePsuData - UpdateConsentPsuDataReq request to update PSU dataconsentAuthorization - AccountConsentAuthorization instance with authorisation datapublic AccountConsentAuthorization getAccountConsentAuthorizationById(String authorisationId, String consentId)
Xs2aAisConsentService.getAccountConsentAuthorizationById(String, String) for detailsgetAccountConsentAuthorizationById in interface AisAuthorizationServiceauthorisationId - String identification of AccountConsentAuthorizationconsentId - String identification of consentpublic Optional<Xs2aAuthorisationSubResources> getAuthorisationSubResources(String consentId)
Xs2aAisConsentService.getAuthorisationSubResources(String) for detailsgetAuthorisationSubResources in interface AisAuthorizationServiceconsentId - String identification of consentpublic Optional<ScaStatus> getAuthorisationScaStatus(String consentId, String authorisationId)
getAuthorisationScaStatus in interface AisAuthorizationServiceconsentId - String representation of consent identifierauthorisationId - String representation of authorisation identifierpublic ScaApproach getScaApproachServiceType()
ScaApproachServiceTypeProvidergetScaApproachServiceType in interface ScaApproachServiceTypeProviderCopyright © 2019. All rights reserved.