Class UserDetailsServiceImpl

java.lang.Object
org.broadleafcommerce.profile.core.service.UserDetailsServiceImpl
All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService

@Service("blUserDetailsService") public class UserDetailsServiceImpl extends Object implements org.springframework.security.core.userdetails.UserDetailsService
This class is being un-deprecated because we want the query for the customer to happen through Hibernate instead of through raw JDBC, which is the case when <sec:jdbc-user-service /> is used. We need the query to go through Hibernate so that we are able to attach the necessary filters in certain circumstances.
Author:
Andre Azzolini (apazzolini), Phillip Verheyden (phillipuniverse)
  • Field Details

  • Constructor Details

    • UserDetailsServiceImpl

      public UserDetailsServiceImpl()
  • Method Details

    • loadUserByUsername

      public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
      Specified by:
      loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
      Throws:
      org.springframework.security.core.userdetails.UsernameNotFoundException
      org.springframework.dao.DataAccessException
    • createGrantedAuthorities

      protected List<org.springframework.security.core.GrantedAuthority> createGrantedAuthorities(List<CustomerRole> customerRoles)