Class Xs2aConsentInfo
- java.lang.Object
-
- de.adorsys.opba.protocol.xs2a.service.xs2a.consent.Xs2aConsentInfo
-
@Service("xs2aConsentInfo") public class Xs2aConsentInfo extends ObjectGeneric information service about the consent based on current context.
-
-
Constructor Summary
Constructors Constructor Description Xs2aConsentInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasWrongCredentials(Xs2aContext ctx)Generic wrong credentials indicator.booleanisAuthorisationStarted(Xs2aContext ctx)Is the authorization already started.booleanisConsentFinalized(Xs2aContext ctx)Is the consent authorized and approved.booleanisDecoupled(Xs2aContext ctx)Is the current consent authorization in DECOUPLED mode.booleanisDecoupledScaFailed(Xs2aContext ctx)Is decoupled SCA was failed (i.e.booleanisDecoupledScaFinalizedByPSU(Xs2aContext ctx)Is decoupled SCA was finalised by PSU with mobile or other type of devicebooleanisDecoupledScaSelected(Xs2aContext ctx)Is selected SCA method decoupledbooleanisDecoupledWithZeroSca(Xs2aContext ctx)booleanisEmbedded(Xs2aContext ctx)Is the current consent authorization in EMBEDDED mode.booleanisEmbeddedOrDecoupled(Xs2aContext ctx)booleanisEmbeddedPreAuthNeeded(Xs2aContext ctx)Is the Oauth2 pre-step or authorization requiredbooleanisMultipleScaAvailable(Xs2aContext ctx)Is the current consent authorization using multiple SCA methods (SMS,email,etc.)booleanisOauth2AuthenticationPreStep(Xs2aContext ctx)Is the current consent in OAUTH-Pre-step (authentication) mode.booleanisOauth2Authorization(Xs2aContext ctx)Is the current consent authorization in OAUTH (not OAUTH pre-step) mode.booleanisOauth2Required(Xs2aContext ctx)Is the Oauth2 pre-step or authorization requiredbooleanisOauth2TokenAvailableAndReadyToUse(Xs2aContext ctx)Is the Oauth2 token available and ready to use (not expired)booleanisOauthEmbeddedPreStepDone(Xs2aContext ctx)Is Oauth Embedded pre step already Done.booleanisOkRedirectConsent(Xs2aContext ctx)Was the redirection from ASPSP in REDIRECT mode using OK (consent granted) or NOK url (consent denied).booleanisPasswordPresent(Xs2aContext ctx)Is the PSU password present in the context.booleanisRedirect(Xs2aContext ctx)Is the current consent authorization in REDIRECT mode.booleanisStartConsentAuthorizationWithPin(Xs2aContext ctx)If ASPSP needs startConsentAuthorization with User Password.booleanisTrySkipStartConsentAuthorization(Xs2aContext ctx)If ASPSP needs startConsentAuthorization to be skipped.booleanisWrongPassword(Xs2aContext ctx)Was the PSU password that was sent to ASPSP wrong.booleanisWrongScaChallenge(Xs2aContext ctx)Was the SCA challenge result that was sent to ASPSP wrong.booleanisZeroScaAvailable(Xs2aContext ctx)Is the current consent authorization using zero SCA flow
-
-
-
Method Detail
-
isEmbedded
public boolean isEmbedded(Xs2aContext ctx)
Is the current consent authorization in EMBEDDED mode.
-
isAuthorisationStarted
public boolean isAuthorisationStarted(Xs2aContext ctx)
Is the authorization already started.
-
isRedirect
public boolean isRedirect(Xs2aContext ctx)
Is the current consent authorization in REDIRECT mode.
-
isTrySkipStartConsentAuthorization
public boolean isTrySkipStartConsentAuthorization(Xs2aContext ctx)
If ASPSP needs startConsentAuthorization to be skipped.
-
isStartConsentAuthorizationWithPin
public boolean isStartConsentAuthorizationWithPin(Xs2aContext ctx)
If ASPSP needs startConsentAuthorization with User Password.
-
isOauth2Authorization
public boolean isOauth2Authorization(Xs2aContext ctx)
Is the current consent authorization in OAUTH (not OAUTH pre-step) mode.
-
isOauth2AuthenticationPreStep
public boolean isOauth2AuthenticationPreStep(Xs2aContext ctx)
Is the current consent in OAUTH-Pre-step (authentication) mode.
-
isOauth2Required
public boolean isOauth2Required(Xs2aContext ctx)
Is the Oauth2 pre-step or authorization required
-
isEmbeddedPreAuthNeeded
public boolean isEmbeddedPreAuthNeeded(Xs2aContext ctx)
Is the Oauth2 pre-step or authorization required
-
isOauth2TokenAvailableAndReadyToUse
public boolean isOauth2TokenAvailableAndReadyToUse(Xs2aContext ctx)
Is the Oauth2 token available and ready to use (not expired)
-
isEmbeddedOrDecoupled
public boolean isEmbeddedOrDecoupled(Xs2aContext ctx)
-
isDecoupled
public boolean isDecoupled(Xs2aContext ctx)
Is the current consent authorization in DECOUPLED mode.
-
isDecoupledWithZeroSca
public boolean isDecoupledWithZeroSca(Xs2aContext ctx)
-
isDecoupledScaSelected
public boolean isDecoupledScaSelected(Xs2aContext ctx)
Is selected SCA method decoupled
-
isMultipleScaAvailable
public boolean isMultipleScaAvailable(Xs2aContext ctx)
Is the current consent authorization using multiple SCA methods (SMS,email,etc.)
-
isDecoupledScaFinalizedByPSU
public boolean isDecoupledScaFinalizedByPSU(Xs2aContext ctx)
Is decoupled SCA was finalised by PSU with mobile or other type of device
-
isDecoupledScaFailed
public boolean isDecoupledScaFailed(Xs2aContext ctx)
Is decoupled SCA was failed (i.e. took too long)
-
isZeroScaAvailable
public boolean isZeroScaAvailable(Xs2aContext ctx)
Is the current consent authorization using zero SCA flow
-
isPasswordPresent
public boolean isPasswordPresent(Xs2aContext ctx)
Is the PSU password present in the context.
-
isOauthEmbeddedPreStepDone
public boolean isOauthEmbeddedPreStepDone(Xs2aContext ctx)
Is Oauth Embedded pre step already Done.
-
isConsentFinalized
public boolean isConsentFinalized(Xs2aContext ctx)
Is the consent authorized and approved.
-
isWrongPassword
public boolean isWrongPassword(Xs2aContext ctx)
Was the PSU password that was sent to ASPSP wrong.
-
isWrongScaChallenge
public boolean isWrongScaChallenge(Xs2aContext ctx)
Was the SCA challenge result that was sent to ASPSP wrong.
-
isOkRedirectConsent
public boolean isOkRedirectConsent(Xs2aContext ctx)
Was the redirection from ASPSP in REDIRECT mode using OK (consent granted) or NOK url (consent denied).
-
hasWrongCredentials
public boolean hasWrongCredentials(Xs2aContext ctx)
Generic wrong credentials indicator.
-
-