Class OneOffConsentExpirationService


  • @Service
    public class OneOffConsentExpirationService
    extends Object
    • Field Detail

      • READ_ONLY_ACCOUNT_DETAILS_COUNT

        public static final int READ_ONLY_ACCOUNT_DETAILS_COUNT
        See Also:
        Constant Field Values
      • READ_ACCOUNT_DETAILS_AND_BALANCES_COUNT

        public static final int READ_ACCOUNT_DETAILS_AND_BALANCES_COUNT
        See Also:
        Constant Field Values
      • READ_ACCOUNT_DETAILS_AND_TRANSACTIONS_COUNT

        public static final int READ_ACCOUNT_DETAILS_AND_TRANSACTIONS_COUNT
        See Also:
        Constant Field Values
      • READ_ALL_DETAILS_WITH_BENEFICIARIES_COUNT

        public static final int READ_ALL_DETAILS_WITH_BENEFICIARIES_COUNT
        See Also:
        Constant Field Values
    • Constructor Detail

      • OneOffConsentExpirationService

        public OneOffConsentExpirationService()
    • Method Detail

      • isConsentExpired

        public boolean isConsentExpired​(de.adorsys.psd2.consent.api.ais.CmsConsent cmsConsent,
                                        Long consentId)
        Checks, should the one-off consent be expired after using its all GET endpoints (accounts, balances, transactions) in all possible combinations depending on the consent type.
        Parameters:
        consentId - consentId to check.
        cmsConsent - the CmsConsent to check.
        Returns:
        true if the consent should be expired, false otherwise.
      • isTrustedBeneficiariesSupported

        public boolean isTrustedBeneficiariesSupported​(String instanceId)