@Service public class ScaApproachResolver extends Object
| Constructor and Description |
|---|
ScaApproachResolver(ServiceTypeDiscoveryService serviceTypeDiscoveryService,
Xs2aAisConsentService xs2aAisConsentService,
PisAuthorisationService pisAuthorisationService,
AspspProfileService aspspProfileService,
RequestProviderService requestProviderService) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull ScaApproach |
getCancellationScaApproach(@NotNull String authorisationId)
Gets SCA approach from the existing cancellation authorisation
|
@NotNull ScaApproach |
getInitiationScaApproach(@NotNull String authorisationId)
Gets SCA approach from the existing initiation authorisation
|
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, AspspProfileService aspspProfileService, RequestProviderService requestProviderService)
public 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 ScaApproach getInitiationScaApproach(@NotNull @NotNull String authorisationId)
authorisationId - authorisation identifier@NotNull public @NotNull ScaApproach getCancellationScaApproach(@NotNull @NotNull String authorisationId)
authorisationId - authorisation identifierCopyright © 2019. All rights reserved.