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.booleanisConsentFinalized(Xs2aContext ctx)Is the consent authorized and approved.booleanisEmbedded(Xs2aContext ctx)Is the current consent authorization in EMBEDDED mode.booleanisMultipleScaAvailable(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)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.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.
-
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.
-
-