Class RedirectLinkBuilder


  • @Component
    public class RedirectLinkBuilder
    extends Object
    • Constructor Detail

      • RedirectLinkBuilder

        public RedirectLinkBuilder()
    • Method Detail

      • buildConsentScaRedirectLink

        public String buildConsentScaRedirectLink​(String encryptedConsentId,
                                                  String redirectId,
                                                  String internalRequestId)
        Builds redirect links by template from AspspProfile. Variables "{redirect-id}" and {encrypted-consent-id} may be used in template.
        Parameters:
        encryptedConsentId - - Encrypted Payment ID provided to TPP
        redirectId - - Redirect ID
        internalRequestId - - Internal Request ID
        Returns:
        redirect link
      • buildConsentScaOauthRedirectLink

        public String buildConsentScaOauthRedirectLink​(String encryptedConsentId,
                                                       String redirectId,
                                                       String internalRequestId)
        Builds OAuth redirect link by template from AspspProfile. Variables "{redirect-id}" and {encrypted-consent-id} may be used in template.
        Parameters:
        encryptedConsentId - - Encrypted consent ID provided to TPP
        redirectId - - Redirect ID
        internalRequestId - - Internal Request ID
        Returns:
        redirect link
      • buildPaymentScaRedirectLink

        public String buildPaymentScaRedirectLink​(String encryptedPaymentId,
                                                  String redirectId,
                                                  String internalRequestId)
        Builds redirect links by template from AspspProfile. Variables "{redirect-id}" and {encrypted-payment-id} may be used in template.
        Parameters:
        encryptedPaymentId - - Encrypted Payment ID provided to TPP
        redirectId - - Redirect ID
        internalRequestId - - Internal Request ID
        Returns:
        redirect link
      • buildPaymentScaOauthRedirectLink

        public String buildPaymentScaOauthRedirectLink​(String encryptedPaymentId,
                                                       String redirectId,
                                                       String internalRequestId)
        Builds OAuth redirect link by template from AspspProfile. Variables "{redirect-id}" and {encrypted-payment-id} may be used in template.
        Parameters:
        encryptedPaymentId - - Encrypted Payment ID provided to TPP
        redirectId - - Redirect ID
        internalRequestId - - Internal Request ID
        Returns:
        redirect link
      • buildPaymentCancellationScaRedirectLink

        public String buildPaymentCancellationScaRedirectLink​(String encryptedPaymentId,
                                                              String redirectId,
                                                              String internalRequestId)
        Builds redirect links by template from AspspProfile. Variables "{redirect-id}" and {encrypted-payment-id} may be used in template.
        Parameters:
        encryptedPaymentId - - Encrypted Payment ID provided to TPP
        redirectId - - Redirect ID
        internalRequestId - - Internal Request ID
        Returns:
        redirect link
      • buildPaymentCancellationScaOauthRedirectLink

        public String buildPaymentCancellationScaOauthRedirectLink​(String encryptedPaymentId,
                                                                   String redirectId,
                                                                   String internalRequestId)
        Builds OAuth redirect links by template from AspspProfile. Variables "{redirect-id}" and {encrypted-payment-id} may be used in template.
        Parameters:
        encryptedPaymentId - - Encrypted Payment ID provided to TPP
        redirectId - - Redirect ID
        internalRequestId - - Internal Request ID
        Returns:
        redirect link
      • buildPisConfirmationLink

        public String buildPisConfirmationLink​(String paymentService,
                                               String paymentProduct,
                                               String encryptedPaymentId,
                                               String redirectId)
        Builds confirmation link for payments.
        Parameters:
        paymentService - - Payment service (ex. "payments")
        paymentProduct - - Payment product (ex. "sepa-credit-transfers")
        encryptedPaymentId - - Encrypted Payment ID provided to TPP
        redirectId - - Redirect ID
        Returns:
        confirmation link
      • buildPisCancellationConfirmationLink

        public String buildPisCancellationConfirmationLink​(String paymentService,
                                                           String paymentProduct,
                                                           String encryptedPaymentId,
                                                           String redirectId)
        Builds confirmation link for payment cancellations.
        Parameters:
        paymentService - - Payment service (ex. "payments")
        paymentProduct - - Payment product (ex. "sepa-credit-transfers")
        encryptedPaymentId - - Encrypted Payment ID provided to TPP
        redirectId - - Redirect ID
        Returns:
        confirmation link
      • buildAisConfirmationLink

        public String buildAisConfirmationLink​(String consentId,
                                               String redirectId)
        Builds confirmation link for consents.
        Parameters:
        consentId - - ID of consent
        redirectId - - Redirect ID
        Returns:
        confirmation link