Class InitialSpiAspspConsentDataProvider

  • All Implemented Interfaces:
    de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider

    public class InitialSpiAspspConsentDataProvider
    extends Object
    implements de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider
    This implementation to be used to temporarily hold consent data array in case if no Consent/Payment ID provided yet. Once it is provided with "saveWith" method, it is saved in the database.
    • Constructor Detail

      • InitialSpiAspspConsentDataProvider

        public InitialSpiAspspConsentDataProvider()
    • Method Detail

      • loadAspspConsentData

        @NotNull
        public @org.jetbrains.annotations.NotNull byte[] loadAspspConsentData()
        Specified by:
        loadAspspConsentData in interface de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider
      • updateAspspConsentData

        public void updateAspspConsentData​(byte[] aspspConsentData)
        Specified by:
        updateAspspConsentData in interface de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider
      • clearAspspConsentData

        public void clearAspspConsentData()
        Specified by:
        clearAspspConsentData in interface de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider
      • saveWith

        public void saveWith​(@NotNull
                             @NotNull String encryptedConsentId)
        Links this consent data object to some consent / payment
        Parameters:
        encryptedConsentId - Consent/Payment ID that will be returned to TPP