@Component public class GeneralAuthorisationService extends Object
| Constructor and Description |
|---|
GeneralAuthorisationService(UserMgmtRestClient userMgmtRestClient,
AuthRequestInterceptor authRequestInterceptor,
ChallengeDataMapper challengeDataMapper,
ScaMethodConverter scaMethodConverter,
AspspConsentDataService consentDataService) |
| Modifier and Type | Method and Description |
|---|---|
<T extends de.adorsys.ledgers.middleware.api.domain.sca.SCAResponseTO> |
authorisePsuForConsent(@NotNull de.adorsys.psd2.xs2a.spi.domain.psu.SpiPsuData spiPsuData,
String pin,
String consentId,
T originalResponse,
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)
public <T extends de.adorsys.ledgers.middleware.api.domain.sca.SCAResponseTO> de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.authorisation.SpiAuthorisationStatus> authorisePsuForConsent(@NotNull
@NotNull de.adorsys.psd2.xs2a.spi.domain.psu.SpiPsuData spiPsuData,
String pin,
String consentId,
T originalResponse,
de.adorsys.ledgers.middleware.api.domain.sca.OpTypeTO opType,
@NotNull
@NotNull de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider)
The result of this authorization 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 authorization code and must enter it.
- ScaStatusTO.PSUIDENTIFIED : the user must select a authorization method to complete auth.
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 © 2019. All rights reserved.