Class GeneralAuthorisationService
- java.lang.Object
-
- de.adorsys.aspsp.xs2a.connector.spi.impl.authorisation.GeneralAuthorisationService
-
@Component public class GeneralAuthorisationService extends Object
-
-
Constructor Summary
Constructors Constructor Description GeneralAuthorisationService(UserMgmtRestClient userMgmtRestClient, AuthRequestInterceptor authRequestInterceptor, ChallengeDataMapper challengeDataMapper, ScaMethodConverter scaMethodConverter, AspspConsentDataService consentDataService, FeignExceptionReader feignExceptionReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.authorisation.SpiPsuAuthorisationResponse>authorisePsuForConsent(@NotNull de.adorsys.psd2.xs2a.spi.domain.psu.SpiPsuData spiPsuData, String pin, String consentId, String authorisationId, de.adorsys.ledgers.middleware.api.domain.sca.OpTypeTO opType, @NotNull de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider)First authorization of the PSU.de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.authorisation.SpiAuthorizationCodeResult>getResponseIfScaSelected(de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider, de.adorsys.ledgers.middleware.api.domain.sca.SCAResponseTO sca)de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.authorisation.SpiAuthorizationCodeResult>returnScaMethodSelection(de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider, de.adorsys.ledgers.middleware.api.domain.sca.SCAResponseTO sca)de.adorsys.ledgers.middleware.api.domain.um.BearerTokenTOvalidateToken(String accessToken)
-
-
-
Constructor Detail
-
GeneralAuthorisationService
public GeneralAuthorisationService(UserMgmtRestClient userMgmtRestClient, AuthRequestInterceptor authRequestInterceptor, ChallengeDataMapper challengeDataMapper, ScaMethodConverter scaMethodConverter, AspspConsentDataService consentDataService, FeignExceptionReader feignExceptionReader)
-
-
Method Detail
-
authorisePsuForConsent
public de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.authorisation.SpiPsuAuthorisationResponse> authorisePsuForConsent(@NotNull @NotNull de.adorsys.psd2.xs2a.spi.domain.psu.SpiPsuData spiPsuData, String pin, String consentId, String authorisationId, de.adorsys.ledgers.middleware.api.domain.sca.OpTypeTO opType, @NotNull @NotNull de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider)First authorization of the PSU.The result of this authorisation must contain an scaStatus with following options: -
ScaStatusTO.EXEMPTED: There is no SCA needed. The user does not have any SCA method anyway. -ScaStatusTO.SCAMETHODSELECTED: The user has receive an authorisation code and must enter it. -ScaStatusTO.PSUIDENTIFIED: the user must select an authorisation method to complete authorisation.In all three cases, we store the response object for reuse in an
AspspConsentDataobject.- Parameters:
spiPsuData- identification data for the psupin- : pis of the psuaspspConsentDataProvider- :Provides access to read/write encrypted data to be stored in the consent management system- Returns:
- : the authorisation status
-
validateToken
public de.adorsys.ledgers.middleware.api.domain.um.BearerTokenTO validateToken(String accessToken)
-
getResponseIfScaSelected
public de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.authorisation.SpiAuthorizationCodeResult> getResponseIfScaSelected(de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider, de.adorsys.ledgers.middleware.api.domain.sca.SCAResponseTO sca)
-
returnScaMethodSelection
public de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.authorisation.SpiAuthorizationCodeResult> returnScaMethodSelection(de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider, de.adorsys.ledgers.middleware.api.domain.sca.SCAResponseTO sca)
-
-