Class TppRedirectUriMapper


  • @Component
    public class TppRedirectUriMapper
    extends Object
    • Constructor Detail

      • TppRedirectUriMapper

        public TppRedirectUriMapper()
    • Method Detail

      • mapToTppRedirectUri

        @Nullable
        public @Nullable de.adorsys.psd2.xs2a.core.tpp.TppRedirectUri mapToTppRedirectUri​(@Nullable
                                                                                          @Nullable String redirectUri,
                                                                                          @Nullable
                                                                                          @Nullable String nokRedirectUri)
        Maps redirectUri and nokRedirectUri to TppRedirectUri object
        Parameters:
        redirectUri - URI of the TPP, where the flow will be redirected to
        nokRedirectUri - Nok URI of the TPP, where the flow will be redirected to in case of a negative response
        Returns:
        new TppRedirectUri object if the given redirectUri wasn't null, null otherwise. Returned TppRedirectUri will always contain redirectUri, but the nokRedirectUri may be null in case it wasn't provided to the mapper.