Class DefaultPaymentAccessValidationService
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.validation.DefaultPaymentAccessValidationService
- All Implemented Interfaces:
PaymentAccessValidationService
public class DefaultPaymentAccessValidationService
extends Object
implements PaymentAccessValidationService
Default implementation of
PaymentAccessValidationService
.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPaymentAccessValidationService
(PaymentTTLValidationService paymentTTLValidationService, PaymentManagementService<Payment> paymentManagementService, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
customerMatches
(@NonNull Payment payment, @NonNull CustomerRef customer) protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils
protected PaymentManagementService<Payment>
protected PaymentTTLValidationService
void
validateCustomerPaymentRequest
(@NonNull Payment payment, @NonNull CustomerRef customerRef, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Validates access to the payment based on the passed in contextprotected void
validatePaymentCustomerRef
(@NonNull Payment payment, @NonNull CustomerRef customerRef, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
-
Constructor Details
-
DefaultPaymentAccessValidationService
public DefaultPaymentAccessValidationService(PaymentTTLValidationService paymentTTLValidationService, PaymentManagementService<Payment> paymentManagementService, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils)
-
-
Method Details
-
validateCustomerPaymentRequest
public void validateCustomerPaymentRequest(@NonNull @NonNull Payment payment, @NonNull @NonNull CustomerRef customerRef, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:PaymentAccessValidationService
Validates access to the payment based on the passed in context- Specified by:
validateCustomerPaymentRequest
in interfacePaymentAccessValidationService
- Parameters:
payment
- thePayment
requiring accesscustomerRef
- theCustomerRef
to validate againstlockToken
- the current lock tokencontext
- context information surrounding multitenant state
-
validatePaymentCustomerRef
protected void validatePaymentCustomerRef(@NonNull @NonNull Payment payment, @NonNull @NonNull CustomerRef customerRef, @Nullable String lockToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
customerMatches
protected boolean customerMatches(@NonNull @NonNull Payment payment, @NonNull @NonNull CustomerRef customer) -
getPaymentTTLValidationService
-
getPaymentManagementService
-
getAuthenticationUtils
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils()
-