Package de.adorsys.psd2.consent.service
Class OneOffConsentExpirationService
- java.lang.Object
-
- de.adorsys.psd2.consent.service.OneOffConsentExpirationService
-
@Service public class OneOffConsentExpirationService extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringBENEFICIARIES_URIstatic intREAD_ACCOUNT_DETAILS_AND_BALANCES_COUNTstatic intREAD_ACCOUNT_DETAILS_AND_TRANSACTIONS_COUNTstatic intREAD_ALL_DETAILS_COUNTstatic intREAD_ALL_DETAILS_WITH_BENEFICIARIES_COUNTstatic intREAD_ONLY_ACCOUNT_DETAILS_COUNT
-
Constructor Summary
Constructors Constructor Description OneOffConsentExpirationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisConsentExpired(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.booleanisTrustedBeneficiariesSupported(String instanceId)
-
-
-
Field Detail
-
BENEFICIARIES_URI
public static final String BENEFICIARIES_URI
- See Also:
- Constant Field Values
-
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_COUNT
public static final int READ_ALL_DETAILS_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
-
-
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- theCmsConsentto check.- Returns:
- true if the consent should be expired, false otherwise.
-
isTrustedBeneficiariesSupported
public boolean isTrustedBeneficiariesSupported(String instanceId)
-
-