@Service public class ScaApproachResolver extends Object
| Constructor and Description |
|---|
ScaApproachResolver(ServiceTypeDiscoveryService serviceTypeDiscoveryService,
Xs2aAisConsentService xs2aAisConsentService,
PisAuthorisationService pisAuthorisationService,
de.adorsys.psd2.aspsp.profile.service.AspspProfileService aspspProfileService,
RequestProviderService requestProviderService) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull de.adorsys.psd2.xs2a.core.profile.ScaApproach |
getScaApproach(@NotNull String authorisationId)
Gets SCA approach from the existing initiation authorisation
|
de.adorsys.psd2.xs2a.core.profile.ScaApproach |
resolveScaApproach()
Resolve which sca approach from sca approaches list in ASPSP-profile should be used for authorisation.
|
public ScaApproachResolver(ServiceTypeDiscoveryService serviceTypeDiscoveryService, @Lazy Xs2aAisConsentService xs2aAisConsentService, @Lazy PisAuthorisationService pisAuthorisationService, de.adorsys.psd2.aspsp.profile.service.AspspProfileService aspspProfileService, RequestProviderService requestProviderService)
public de.adorsys.psd2.xs2a.core.profile.ScaApproach resolveScaApproach()
If header "tpp-redirect-preferred" is provided with value "true" and ASPSP supports Redirect approach, then this approach will be used. If header "tpp-redirect-preferred" is provided with value "false", the first non-Redirect approach from the list will be used. If header "tpp-redirect-preferred" is not provided, the first approach from the list will be chosen. If ASPSP has only one SCA approach in profile, header "tpp-redirect-preferred" will be ignored and only approach from profile will be used
@NotNull
public @NotNull de.adorsys.psd2.xs2a.core.profile.ScaApproach getScaApproach(@NotNull
@NotNull String authorisationId)
authorisationId - authorisation identifierCopyright © 2020. All rights reserved.