@Service public class EmbeddedAisAuthorizationService extends Object implements AisAuthorizationService
| Constructor and Description |
|---|
EmbeddedAisAuthorizationService() |
| 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 authorizationId,
String consentId)
Gets AccountConsentAuthorization using provided authorization 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 request,
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 AccountConsentAuthorization getAccountConsentAuthorizationById(String authorizationId, String consentId)
Xs2aAisConsentService.getAccountConsentAuthorizationById(String, String) for detailsgetAccountConsentAuthorizationById in interface AisAuthorizationServiceauthorizationId - String identification of AccountConsentAuthorizationconsentId - String identification of consentpublic UpdateConsentPsuDataResponse updateConsentPsuData(UpdateConsentPsuDataReq request, 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 AisAuthorizationServicerequest - UpdateConsentPsuDataReq request to update PSU dataconsentAuthorization - AccountConsentAuthorization instance with authorisation datapublic 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.