Class AbstractConsentAuthorizationService<T>
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.authorization.AbstractConsentAuthorizationService<T>
-
- All Implemented Interfaces:
ConsentAuthorizationService,ScaApproachServiceTypeProvider
- Direct Known Subclasses:
AbstractAisAuthorizationService,AbstractPiisAuthorizationService
public abstract class AbstractConsentAuthorizationService<T> extends Object implements ConsentAuthorizationService
-
-
Constructor Summary
Constructors Constructor Description AbstractConsentAuthorizationService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Optional<CreateConsentAuthorizationResponse>createConsentAuthorization(de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData, String consentId)Creates consent authorisation using provided psu id and consent id by invoking CMS through ConsentService SeeXs2aConsentService.createConsentAuthorisation(String, ScaStatus, PsuIdData)for detailsOptional<de.adorsys.psd2.xs2a.core.sca.ScaStatus>getAuthorisationScaStatus(String consentId, String authorisationId)Gets SCA status of the authorisation from CMSOptional<de.adorsys.psd2.xs2a.core.authorisation.Authorisation>getConsentAuthorizationById(String authorisationId)Gets ConsentAuthorization using provided authorisation id and consent id by invoking CMS through ConsentService.protected abstract Optional<T>getConsentById(String consentId)protected abstract voidupdateConsentAuthorisation(UpdateConsentPsuDataReq mapToUpdateConsentPsuDataReq)AuthorisationProcessorResponseupdateConsentPsuData(UpdateAuthorisationRequest request, AuthorisationProcessorResponse response)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.adorsys.psd2.xs2a.service.authorization.ScaApproachServiceTypeProvider
getScaApproachServiceType
-
-
-
-
Method Detail
-
updateConsentAuthorisation
protected abstract void updateConsentAuthorisation(UpdateConsentPsuDataReq mapToUpdateConsentPsuDataReq)
-
createConsentAuthorization
public Optional<CreateConsentAuthorizationResponse> createConsentAuthorization(de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData, String consentId)
Creates consent authorisation using provided psu id and consent id by invoking CMS through ConsentService SeeXs2aConsentService.createConsentAuthorisation(String, ScaStatus, PsuIdData)for details- Specified by:
createConsentAuthorizationin interfaceConsentAuthorizationService- Parameters:
psuData- PsuIdData container of authorisation data about PSUconsentId- String identification of consent- Returns:
- Optional of CreateConsentAuthorizationResponse with consent creating data
-
updateConsentPsuData
public AuthorisationProcessorResponse updateConsentPsuData(UpdateAuthorisationRequest request, AuthorisationProcessorResponse response)
- Specified by:
updateConsentPsuDatain interfaceConsentAuthorizationService
-
getConsentAuthorizationById
public Optional<de.adorsys.psd2.xs2a.core.authorisation.Authorisation> getConsentAuthorizationById(String authorisationId)
Gets ConsentAuthorization using provided authorisation id and consent id by invoking CMS through ConsentService. SeeXs2aAuthorisationService.getAuthorisationById(String)(String)} for details- Specified by:
getConsentAuthorizationByIdin interfaceConsentAuthorizationService- Parameters:
authorisationId- String identification of ConsentAuthorization- Returns:
- ConsentAuthorization instance
-
getAuthorisationScaStatus
public Optional<de.adorsys.psd2.xs2a.core.sca.ScaStatus> getAuthorisationScaStatus(String consentId, String authorisationId)
Gets SCA status of the authorisation from CMS- Specified by:
getAuthorisationScaStatusin interfaceConsentAuthorizationService- Parameters:
consentId- String representation of consent identifierauthorisationId- String representation of authorisation identifier- Returns:
- SCA status of the authorisation
-
-