Class Xs2aConsentInfo


  • @Service("xs2aConsentInfo")
    public class Xs2aConsentInfo
    extends Object
    Generic information service about the consent based on current context.
    • Constructor Detail

      • Xs2aConsentInfo

        public Xs2aConsentInfo()
    • 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.