public class OneUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
Default UserDetailsService
which locates the given username in the user work objects and returns a extended OneUserDetails
instance as UserDetails
.
OneUserDetails
Constructor and Description |
---|
OneUserDetailsService(UserManager userManager) |
Modifier and Type | Method and Description |
---|---|
OneUserDetails |
loadUserByUsername(String username) |
OneUserDetails |
loadUserByUsername(String username,
Optional<String> stateOptional)
Loads system users with a given state.
|
public OneUserDetailsService(UserManager userManager)
public OneUserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
org.springframework.security.core.userdetails.UsernameNotFoundException
public OneUserDetails loadUserByUsername(String username, Optional<String> stateOptional)
Loads system users with a given state. If the given optional is not present active and deactivated users are retrieved.
username
- the username identifying the user whose data is required.stateOptional
- the state optional to add to the predicate for searching the usersnull
)org.springframework.security.core.userdetails.UsernameNotFoundException
- if the user could not be found or the user has no GrantedAuthorityCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.