@Service @Validated @Transactional @Qualifier(value="cachingUserDetailsService") public class CachingUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
Constructor and Description |
---|
CachingUserDetailsService(AAAUserCaching userCaching,
org.springframework.security.core.userdetails.UserDetailsService delegate) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.userdetails.UserCache |
getUserCache()
Returns the cache implementation used for caching the user details.
|
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username) |
void |
removeUser(String username)
Removes user from cache by username.
|
@Autowired public CachingUserDetailsService(AAAUserCaching userCaching, org.springframework.security.core.userdetails.UserDetailsService delegate)
public void removeUser(String username)
username
- User name to be evicted from cachepublic org.springframework.security.core.userdetails.UserCache getUserCache()
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username)
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
Copyright © 2020. All rights reserved.