Package de.adorsys.psd2.xs2a.web
Class RedirectLinkBuilder
- java.lang.Object
-
- de.adorsys.psd2.xs2a.web.RedirectLinkBuilder
-
@Component public class RedirectLinkBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description RedirectLinkBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildAisConfirmationLink(String consentId, String redirectId)Builds confirmation link for consents.StringbuildConsentScaOauthRedirectLink(String encryptedConsentId, String redirectId, String internalRequestId)Builds OAuth redirect link by template from AspspProfile.StringbuildConsentScaRedirectLink(String encryptedConsentId, String redirectId, String internalRequestId)Builds redirect links by template from AspspProfile.StringbuildPaymentCancellationScaOauthRedirectLink(String encryptedPaymentId, String redirectId, String internalRequestId)Builds OAuth redirect links by template from AspspProfile.StringbuildPaymentCancellationScaRedirectLink(String encryptedPaymentId, String redirectId, String internalRequestId)Builds redirect links by template from AspspProfile.StringbuildPaymentScaOauthRedirectLink(String encryptedPaymentId, String redirectId, String internalRequestId)Builds OAuth redirect link by template from AspspProfile.StringbuildPaymentScaRedirectLink(String encryptedPaymentId, String redirectId, String internalRequestId)Builds redirect links by template from AspspProfile.StringbuildPisCancellationConfirmationLink(String paymentService, String paymentProduct, String encryptedPaymentId, String redirectId)Builds confirmation link for payment cancellations.StringbuildPisConfirmationLink(String paymentService, String paymentProduct, String encryptedPaymentId, String redirectId)Builds confirmation link for payments.
-
-
-
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 TPPredirectId- - Redirect IDinternalRequestId- - 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 TPPredirectId- - Redirect IDinternalRequestId- - 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 TPPredirectId- - Redirect IDinternalRequestId- - 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 TPPredirectId- - Redirect IDinternalRequestId- - 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 TPPredirectId- - Redirect IDinternalRequestId- - 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 TPPredirectId- - Redirect IDinternalRequestId- - 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 TPPredirectId- - 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 TPPredirectId- - Redirect ID- Returns:
- confirmation link
-
-