Class SpiAspspConsentDataProviderFactory


  • @Component
    public class SpiAspspConsentDataProviderFactory
    extends Object
    Allows to establish stateful AspspConsentDataProvider objects in Spring Context
    • Constructor Detail

      • SpiAspspConsentDataProviderFactory

        public SpiAspspConsentDataProviderFactory()
    • Method Detail

      • getSpiAspspDataProviderFor

        @NotNull
        public @NotNull de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider getSpiAspspDataProviderFor​(@NotNull
                                                                                                               @NotNull String encryptedConsentId)
        Establishes SpiAspspConsentDataProvider object that is linked to existing Consent/Payment ID
        Parameters:
        encryptedConsentId - Consent/Payment ID received from TPP
        Returns:
        stateful SpiAspspConsentDataProvider object
      • getInitialAspspConsentDataProvider

        @NotNull
        public @NotNull InitialSpiAspspConsentDataProvider getInitialAspspConsentDataProvider()
        Prrovides SpiAspspConsentDataProvider object to store AspspConsentData array if Consent/Payment ID is not yet set
        Returns:
        stateful SpiAspspConsentDataProvider object