Package ru.kpekepsalt.ruvik.service.Impl
Class UserDetailsServiceImpl
- java.lang.Object
-
- ru.kpekepsalt.ruvik.service.Impl.UserDetailsServiceImpl
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
@Service public class UserDetailsServiceImpl extends Object implements org.springframework.security.core.userdetails.UserDetailsService
-
-
Constructor Summary
Constructors Constructor Description UserDetailsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authentication
getAuthentication()
User
getUser()
AppUserDetails
getUserDetails()
Long
getUserid()
boolean
hasAuthority(String authority)
boolean
isAuthenticated()
org.springframework.security.core.userdetails.UserDetails
loadUserByUsername(String s)
-
-
-
Method Detail
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String s) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
getAuthentication
public org.springframework.security.core.Authentication getAuthentication()
-
hasAuthority
public boolean hasAuthority(String authority)
-
getUserDetails
public AppUserDetails getUserDetails()
-
getUserid
public Long getUserid()
-
getUser
public User getUser()
-
isAuthenticated
public boolean isAuthenticated()
-
-