@Service(value="blJWTCustomerStateService") @ConditionalOnProperty(name="blc.auth.jwt.enabled") public class JWTCustomerStateServiceImpl extends Object implements CustomerStateService
| Modifier and Type | Field and Description |
|---|---|
protected AuthenticationTokenService |
authenticationTokenService |
protected org.broadleafcommerce.common.crossapp.service.CrossAppAuthService |
crossAppAuthService |
protected org.broadleafcommerce.profile.core.service.CustomerService |
customerService |
protected org.springframework.core.env.Environment |
environment |
| Constructor and Description |
|---|
JWTCustomerStateServiceImpl(org.springframework.core.env.Environment environment,
org.broadleafcommerce.profile.core.service.CustomerService customerService,
AuthenticationTokenService authenticationTokenService) |
| Modifier and Type | Method and Description |
|---|---|
protected org.broadleafcommerce.profile.core.domain.Customer |
getAuthenticatedCustomer() |
org.broadleafcommerce.profile.core.domain.Customer |
getCustomer(javax.servlet.http.HttpServletRequest request) |
protected String |
getCustomerTokenFromRequest(javax.servlet.http.HttpServletRequest request) |
protected String |
getCustomerTokenHeader() |
protected String |
getCustomerTokenRequestParameter() |
protected boolean |
isCrossAppAuthenticated() |
org.broadleafcommerce.profile.core.domain.Customer |
registerNewCustomer(RegisterDTO registerDTO)
Processes the
RegisterDTO to create and register a new customer. |
protected final org.springframework.core.env.Environment environment
protected final org.broadleafcommerce.profile.core.service.CustomerService customerService
protected final AuthenticationTokenService authenticationTokenService
@Autowired(required=false) @Qualifier(value="blCrossAppAuthService") protected org.broadleafcommerce.common.crossapp.service.CrossAppAuthService crossAppAuthService
public JWTCustomerStateServiceImpl(org.springframework.core.env.Environment environment,
org.broadleafcommerce.profile.core.service.CustomerService customerService,
AuthenticationTokenService authenticationTokenService)
public org.broadleafcommerce.profile.core.domain.Customer registerNewCustomer(RegisterDTO registerDTO)
CustomerStateServiceRegisterDTO to create and register a new customer.registerNewCustomer in interface CustomerStateServiceregisterDTO - the object containing the new customer informationpublic org.broadleafcommerce.profile.core.domain.Customer getCustomer(javax.servlet.http.HttpServletRequest request)
getCustomer in interface CustomerStateServiceprotected boolean isCrossAppAuthenticated()
protected org.broadleafcommerce.profile.core.domain.Customer getAuthenticatedCustomer()
protected String getCustomerTokenFromRequest(javax.servlet.http.HttpServletRequest request)
protected String getCustomerTokenHeader()
protected String getCustomerTokenRequestParameter()
Copyright © 2020. All rights reserved.