Package org.onebusaway.users.impl
Class UserDetailsServiceImpl
- java.lang.Object
-
- org.onebusaway.users.impl.UserDetailsServiceImpl
-
- All Implemented Interfaces:
IndexedUserDetailsService,org.springframework.security.core.userdetails.UserDetailsService
@Component public class UserDetailsServiceImpl extends Object implements org.springframework.security.core.userdetails.UserDetailsService, IndexedUserDetailsService
-
-
Constructor Summary
Constructors Constructor Description UserDetailsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexedUserDetailsgetOrCreateUserForIndexKey(UserIndexKey key, String credentials, boolean isAnonymous)IndexedUserDetailsgetUserForIndexKey(UserIndexKey key)IndexedUserDetailsServiceInterfaceorg.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username)UserDetailsServiceInterfacevoidresetUserForIndexKey(UserIndexKey key)voidsetAuthoritiesService(StandardAuthoritiesService authoritiesService)voidsetUserLastAccessTimeService(UserLastAccessTimeService userLastAccessTimeService)voidsetUserService(UserService userService)
-
-
-
Method Detail
-
setUserService
@Autowired public void setUserService(UserService userService)
-
setAuthoritiesService
@Autowired public void setAuthoritiesService(StandardAuthoritiesService authoritiesService)
-
setUserLastAccessTimeService
@Autowired public void setUserLastAccessTimeService(UserLastAccessTimeService userLastAccessTimeService)
-
loadUserByUsername
@Transactional public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
UserDetailsServiceInterface- Specified by:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessException
-
getUserForIndexKey
@Transactional public IndexedUserDetails getUserForIndexKey(UserIndexKey key) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
IndexedUserDetailsServiceInterface- Specified by:
getUserForIndexKeyin interfaceIndexedUserDetailsService- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessException
-
getOrCreateUserForIndexKey
public IndexedUserDetails getOrCreateUserForIndexKey(UserIndexKey key, String credentials, boolean isAnonymous) throws org.springframework.dao.DataAccessException
- Specified by:
getOrCreateUserForIndexKeyin interfaceIndexedUserDetailsService- Throws:
org.springframework.dao.DataAccessException
-
resetUserForIndexKey
public void resetUserForIndexKey(UserIndexKey key)
- Specified by:
resetUserForIndexKeyin interfaceIndexedUserDetailsService
-
-