Class OauthProfileServiceWrapper
- java.lang.Object
-
- de.adorsys.aspsp.xs2a.connector.oauth.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 Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.adorsys.psd2.aspsp.profile.domain.AspspSettingsgetAspspSettings(String instanceId)List<de.adorsys.psd2.xs2a.core.profile.ScaApproach>getScaApproaches()Reads list of sca approaches from ASPSP profile serviceList<de.adorsys.psd2.xs2a.core.profile.ScaApproach>getScaApproaches(String instanceId)de.adorsys.psd2.xs2a.core.profile.ScaRedirectFlowgetScaRedirectFlow()Reads the variant of redirect approach to be used.booleanisMultitenancyEnabled()
-
-
-
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:
getAspspSettingsin interfacede.adorsys.psd2.aspsp.profile.service.AspspProfileService
-
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.
-
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
-
getScaApproaches
public List<de.adorsys.psd2.xs2a.core.profile.ScaApproach> getScaApproaches(String instanceId)
- Specified by:
getScaApproachesin interfacede.adorsys.psd2.aspsp.profile.service.AspspProfileService
-
isMultitenancyEnabled
public boolean isMultitenancyEnabled()
- Specified by:
isMultitenancyEnabledin interfacede.adorsys.psd2.aspsp.profile.service.AspspProfileService
-
-