@Service public class AuthorisationMethodDecider extends Object
| Constructor and Description |
|---|
AuthorisationMethodDecider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExplicitMethod(boolean tppExplicitAuthorisationPreferred,
boolean multilevelScaRequired)
Decides whether explicit authorisation method will be used based on bank_profile configuration and
tppExplicitAuthorisationPreferred, signingBasketSupported values.
|
boolean |
isImplicitMethod(boolean tppExplicitAuthorisationPreferred,
boolean multilevelScaRequired)
Decides whether implicit authorisation method will be used based on bank_profile configuration and
tppExplicitAuthorisationPreferred and signingBasketSupported values.
|
boolean |
isSigningBasketModeActive(boolean tppExplicitAuthorisationPreferred)
Decides whether signing basket mode activate will be used
tppExplicitAuthorisationPreferred and signingBasketSupported values.
|
public boolean isExplicitMethod(boolean tppExplicitAuthorisationPreferred,
boolean multilevelScaRequired)
Explicit authorisation will be used if:
- bank_profile configuration field 'startAuthorisationMode' is set to 'explicit'; - bank_profile configuration field 'startAuthorisationMode' is set to 'auto' and tppExplicitAuthorisationPreferred = true and signingBasketSupported = true or in case of multilevel SCA
tppExplicitAuthorisationPreferred - value of tpp's choice of authorisation methodmultilevelScaRequired - does response have multilevel SCApublic boolean isImplicitMethod(boolean tppExplicitAuthorisationPreferred,
boolean multilevelScaRequired)
Implicit authorisation will be used if:
- bank_profile configuration field 'startAuthorisationMode' is set to 'implicit'; - bank_profile configuration field 'startAuthorisationMode' is set to 'auto' and tppExplicitAuthorisationPreferred = false and signingBasketSupported = false.
Implicit approach is impossible in case of multilevel SCA
tppExplicitAuthorisationPreferred - value of TPP's choice of authorisation methodmultilevelScaRequired - does response have multilevel SCApublic boolean isSigningBasketModeActive(boolean tppExplicitAuthorisationPreferred)
tppExplicitAuthorisationPreferred - value of TPP's choice of authorisation methodCopyright © 2019. All rights reserved.