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.
      • isRedirect

        public boolean isRedirect​(Xs2aContext ctx)
        Is the current consent authorization in REDIRECT mode.
      • 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
      • isOauth2TokenAvailableAndReadyToUse

        public boolean isOauth2TokenAvailableAndReadyToUse​(Xs2aContext ctx)
        Is the Oauth2 token available and ready to use (not expired)
      • isMultipleScaAvailable

        public boolean isMultipleScaAvailable​(Xs2aContext ctx)
        Is the current consent authorization using multiple SCA methods (SMS,email,etc.)
      • 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.
      • 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.