public class DefaultGuestCartTokenValidator extends Object implements GuestCartTokenValidator
| Constructor and Description |
|---|
DefaultGuestCartTokenValidator(GuestCartProtectionService guestCartProtectionService,
CartValidationProperties cartValidationProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected CartValidationProperties |
getCartValidationProperties() |
protected GuestCartProtectionService |
getGuestCartProtectionService() |
protected String |
guestTokenRequiredMessage(String cartId) |
void |
validateGuestTokenForCheckout(String cartId,
String guestToken,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Validates the provided guest token string for the given cart ID during checkout.
|
void |
validateGuestTokenForOperation(String cartId,
String guestToken,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Validates the provided guest token string for the given cart ID during a cart operation.
|
public DefaultGuestCartTokenValidator(GuestCartProtectionService guestCartProtectionService, CartValidationProperties cartValidationProperties)
public void validateGuestTokenForCheckout(String cartId, @Nullable String guestToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
GuestCartTokenValidatorvalidateGuestTokenForCheckout in interface GuestCartTokenValidatorcartId - the cart IDguestToken - the guest tokencontextInfo - the context infopublic void validateGuestTokenForOperation(String cartId, @Nullable String guestToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
GuestCartTokenValidatorvalidateGuestTokenForOperation in interface GuestCartTokenValidatorcartId - the cart IDguestToken - the guest tokencontextInfo - the context infoprotected GuestCartProtectionService getGuestCartProtectionService()
protected CartValidationProperties getCartValidationProperties()
Copyright © 2021. All rights reserved.