@Service public class OneOffConsentExpirationService extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
READ_ACCOUNT_DETAILS_AND_BALANCES_COUNT |
static int |
READ_ACCOUNT_DETAILS_AND_TRANSACTIONS_COUNT |
static int |
READ_ALL_DETAILS_COUNT |
static int |
READ_ONLY_ACCOUNT_DETAILS_COUNT |
| Constructor and Description |
|---|
OneOffConsentExpirationService() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final int READ_ONLY_ACCOUNT_DETAILS_COUNT
public static final int READ_ACCOUNT_DETAILS_AND_BALANCES_COUNT
public static final int READ_ACCOUNT_DETAILS_AND_TRANSACTIONS_COUNT
public static final int READ_ALL_DETAILS_COUNT
public boolean isConsentExpired(de.adorsys.psd2.consent.api.ais.CmsConsent cmsConsent,
Long consentId)
consentId - consentId to check.cmsConsent - the CmsConsent to check.Copyright © 2020. All rights reserved.