@Component public class GeneralAuthorisationService extends Object
| Constructor and Description |
|---|
GeneralAuthorisationService(UserMgmtRestClient userMgmtRestClient,
AuthRequestInterceptor authRequestInterceptor,
ChallengeDataMapper challengeDataMapper,
ScaMethodConverter scaMethodConverter,
AspspConsentDataService consentDataService,
FeignExceptionReader feignExceptionReader) |
| Modifier and Type | Method and 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.BearerTokenTO |
validateToken(String accessToken) |
public GeneralAuthorisationService(UserMgmtRestClient userMgmtRestClient, AuthRequestInterceptor authRequestInterceptor, ChallengeDataMapper challengeDataMapper, ScaMethodConverter scaMethodConverter, AspspConsentDataService consentDataService, FeignExceptionReader feignExceptionReader)
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)
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 AspspConsentData object.
spiPsuData - identification data for the psupin - : pis of the psuaspspConsentDataProvider - :Provides access to read/write encrypted data to be stored in the consent management systempublic de.adorsys.ledgers.middleware.api.domain.um.BearerTokenTO validateToken(String accessToken)
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)
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)
Copyright © 2020. All rights reserved.