@Service public class AccountReferenceInConsentUpdater extends Object
| Constructor and Description |
|---|
AccountReferenceInConsentUpdater() |
| Modifier and Type | Method and Description |
|---|---|
void |
rewriteAccountAccess(@NotNull String consentId,
@NotNull Xs2aAccountAccess newAccountAccess)
Overwrites existing account access with the new one.
|
Optional<AccountConsent> |
updateAccountReferences(@NotNull String consentId,
@NotNull Xs2aAccountAccess existingAccess,
@NotNull List<Xs2aAccountDetails> accountDetails)
Updates account resourceIDs in existing account access.
|
public void rewriteAccountAccess(@NotNull
@NotNull String consentId,
@NotNull
@NotNull Xs2aAccountAccess newAccountAccess)
consentId - an external ID of consent, where account access to be storednewAccountAccess - new object with account accessespublic Optional<AccountConsent> updateAccountReferences(@NotNull @NotNull String consentId, @NotNull @NotNull Xs2aAccountAccess existingAccess, @NotNull @NotNull List<Xs2aAccountDetails> accountDetails)
consentId - an external ID of consent, where account access to be storedexistingAccess - existing account access of the consentaccountDetails - list of account details with referenceId setCopyright © 2020. All rights reserved.