Class DbAuthenticationUserDetailsService<T extends org.springframework.security.core.Authentication>

  • All Implemented Interfaces:
    org.springframework.security.core.userdetails.AuthenticationUserDetailsService<T>

    public class DbAuthenticationUserDetailsService<T extends org.springframework.security.core.Authentication>
    extends AbstractCachedUserDetailsService
    implements org.springframework.security.core.userdetails.AuthenticationUserDetailsService<T>
    Implementation of DbAuthenticationUserDetailsService that uses Studio's UserDAO
    Since:
    4.0
    Author:
    joseross
    • Constructor Detail

      • DbAuthenticationUserDetailsService

        @ConstructorProperties({"userDao","cache"})
        public DbAuthenticationUserDetailsService​(UserDAO userDao,
                                                  com.google.common.cache.Cache<String,​User> cache)
    • Method Detail

      • loadUserDetails

        public org.springframework.security.core.userdetails.UserDetails loadUserDetails​(T auth)
                                                                                  throws org.springframework.security.core.userdetails.UsernameNotFoundException
        Specified by:
        loadUserDetails in interface org.springframework.security.core.userdetails.AuthenticationUserDetailsService<T extends org.springframework.security.core.Authentication>
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException