Class RedirectConsentAuthorizationService
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.authorization.piis.RedirectConsentAuthorizationService
-
- All Implemented Interfaces:
ConsentAuthorizationService,ScaApproachServiceTypeProvider
- Direct Known Subclasses:
RedirectAisAuthorizationService,RedirectPiisAuthorizationService
public abstract class RedirectConsentAuthorizationService extends Object implements ConsentAuthorizationService
ConsentAuthorizationService implementation to be used in case of redirect approach
-
-
Constructor Summary
Constructors Constructor Description RedirectConsentAuthorizationService()
-
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 ConsentAuthorizationService 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 authorizationId)de.adorsys.psd2.xs2a.core.profile.ScaApproachgetScaApproachServiceType()Gets SCA approach used in current serviceprotected abstract booleanisConsentAbsent(String consentId)-
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.ConsentAuthorizationService
updateConsentPsuData
-
-
-
-
Method Detail
-
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 ConsentAuthorizationService 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
-
isConsentAbsent
protected abstract boolean isConsentAbsent(String consentId)
-
getConsentAuthorizationById
public Optional<de.adorsys.psd2.xs2a.core.authorisation.Authorisation> getConsentAuthorizationById(String authorizationId)
- Specified by:
getConsentAuthorizationByIdin interfaceConsentAuthorizationService
-
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
-
getScaApproachServiceType
public de.adorsys.psd2.xs2a.core.profile.ScaApproach getScaApproachServiceType()
Description copied from interface:ScaApproachServiceTypeProviderGets SCA approach used in current service- Specified by:
getScaApproachServiceTypein interfaceScaApproachServiceTypeProvider- Returns:
- SCA approach
-
-