Class ProfileUserDetailsService

java.lang.Object
org.craftercms.engine.util.spring.security.profile.ProfileUserDetailsService
All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService

public class ProfileUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
Implementation of UserDetailsService that uses ProfileService
Since:
3.1.5
Author:
joseross
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.craftercms.profile.api.services.ProfileService
     
    protected org.craftercms.security.utils.tenant.TenantsResolver
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProfileUserDetailsService(org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver, org.craftercms.profile.api.services.ProfileService profileService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.userdetails.UserDetails
     
    org.springframework.security.core.userdetails.UserDetails
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • tenantsResolver

      protected org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver
    • profileService

      protected org.craftercms.profile.api.services.ProfileService profileService
  • Constructor Details

    • ProfileUserDetailsService

      @ConstructorProperties({"tenantsResolver","profileService"}) public ProfileUserDetailsService(org.craftercms.security.utils.tenant.TenantsResolver tenantsResolver, org.craftercms.profile.api.services.ProfileService profileService)
  • Method Details

    • loadUserById

      public org.springframework.security.core.userdetails.UserDetails loadUserById(String id)
    • loadUserByUsername

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