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
-
-
Field Summary
Fields Modifier and Type Field Description protected Xs2aConsentAuthorisationMapperxs2aConsentAuthorisationMapper
-
Constructor Summary
Constructors Constructor Description AbstractConsentAuthorizationService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected de.adorsys.psd2.consent.api.authorisation.CreateAuthorisationRequestcreateAuthorisationRequest(String authorisationId, de.adorsys.psd2.xs2a.core.sca.ScaStatus scaStatus, de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData, de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)Optional<CreateConsentAuthorizationResponse>createConsentAuthorization(@NotNull Xs2aCreateAuthorisationRequest createAuthorisationRequest)Optional<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(ConsentAuthorisationsParameters mapToUpdateConsentPsuDataReq)AuthorisationProcessorResponseupdateConsentPsuData(CommonAuthorisationParameters 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
-
-
-
-
Field Detail
-
xs2aConsentAuthorisationMapper
protected final Xs2aConsentAuthorisationMapper xs2aConsentAuthorisationMapper
-
-
Method Detail
-
updateConsentAuthorisation
protected abstract void updateConsentAuthorisation(ConsentAuthorisationsParameters mapToUpdateConsentPsuDataReq)
-
createConsentAuthorization
public Optional<CreateConsentAuthorizationResponse> createConsentAuthorization(@NotNull @NotNull Xs2aCreateAuthorisationRequest createAuthorisationRequest)
- Specified by:
createConsentAuthorizationin interfaceConsentAuthorizationService
-
createAuthorisationRequest
protected de.adorsys.psd2.consent.api.authorisation.CreateAuthorisationRequest createAuthorisationRequest(String authorisationId, de.adorsys.psd2.xs2a.core.sca.ScaStatus scaStatus, de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData, de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
-
updateConsentPsuData
public AuthorisationProcessorResponse updateConsentPsuData(CommonAuthorisationParameters 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
-
-