Class DbAuthenticationUserDetailsService<T extends org.springframework.security.core.Authentication>
- java.lang.Object
-
- org.craftercms.studio.impl.v2.security.userdetails.AbstractCachedUserDetailsService
-
- org.craftercms.studio.impl.v2.security.userdetails.DbAuthenticationUserDetailsService<T>
-
- 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 ofDbAuthenticationUserDetailsService
that uses Studio'sUserDAO
- Since:
- 4.0
- Author:
- joseross
-
-
Field Summary
-
Fields inherited from class org.craftercms.studio.impl.v2.security.userdetails.AbstractCachedUserDetailsService
cache, userDao
-
-
Constructor Summary
Constructors Constructor Description DbAuthenticationUserDetailsService(UserDAO userDao, com.google.common.cache.Cache<String,User> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.userdetails.UserDetails
loadUserDetails(T auth)
-
Methods inherited from class org.craftercms.studio.impl.v2.security.userdetails.AbstractCachedUserDetailsService
getUser
-
-
-
-
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 interfaceorg.springframework.security.core.userdetails.AuthenticationUserDetailsService<T extends org.springframework.security.core.Authentication>
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
-