Class OauthProfileServiceWrapper

  • All Implemented Interfaces:
    de.adorsys.psd2.aspsp.profile.service.AspspProfileService

    @Primary
    @Service
    public class OauthProfileServiceWrapper
    extends Object
    implements de.adorsys.psd2.aspsp.profile.service.AspspProfileService
    ASPSP profile wrapper, responsible for substituting real scaRedirectFlow value and modifying redirect and oauth links from profile. Needed for dynamic resolution of scaRedirectFlow without changing the profile itself.
    • Constructor Detail

      • OauthProfileServiceWrapper

        public OauthProfileServiceWrapper​(de.adorsys.psd2.aspsp.profile.service.AspspProfileService aspspProfileService,
                                          OauthDataHolder oauthDataHolder,
                                          de.adorsys.psd2.xs2a.service.discovery.ServiceTypeDiscoveryService serviceTypeDiscoveryService,
                                          de.adorsys.psd2.xs2a.service.RequestProviderService requestProviderService,
                                          OAuthConfiguration oAuthConfiguration)
    • Method Detail

      • getAspspSettings

        public de.adorsys.psd2.aspsp.profile.domain.AspspSettings getAspspSettings​(String instanceId)
        Specified by:
        getAspspSettings in interface de.adorsys.psd2.aspsp.profile.service.AspspProfileService
      • getScaApproaches

        public List<de.adorsys.psd2.xs2a.core.profile.ScaApproach> getScaApproaches​(String instanceId)
        Specified by:
        getScaApproaches in interface de.adorsys.psd2.aspsp.profile.service.AspspProfileService
      • getScaApproaches

        public List<de.adorsys.psd2.xs2a.core.profile.ScaApproach> getScaApproaches()
        Reads list of sca approaches from ASPSP profile service
        Returns:
        List of Available SCA approaches for tpp
      • getScaRedirectFlow

        public de.adorsys.psd2.xs2a.core.profile.ScaRedirectFlow getScaRedirectFlow()
        Reads the variant of redirect approach to be used.
        Returns:
        the variant of redirect approach to be used.
      • isMultitenancyEnabled

        public boolean isMultitenancyEnabled()
        Specified by:
        isMultitenancyEnabled in interface de.adorsys.psd2.aspsp.profile.service.AspspProfileService