public class FileUserDetailsService extends TimerTask implements org.springframework.security.core.userdetails.UserDetailsService, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
UserDetailsService similar to
the default Spring Security Properties file service but that will track
changes to the User Properties file and reload it if the file changes.| Constructor and Description |
|---|
FileUserDetailsService()
Create a new FileUserDetailsService
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
int |
getCheckDelay()
Get the checkDelay in seconds
|
String |
getPropertiesFileName()
Get the propertiesFileName
|
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username) |
void |
run() |
void |
setCheckDelay(int checkDelay)
Set the checkDelay in seconds
|
void |
setPropertiesFileName(String propertiesFileName)
Set the propertiesFileName
|
cancel, scheduledExecutionTimepublic FileUserDetailsService()
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsServiceorg.springframework.security.core.userdetails.UsernameNotFoundExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic String getPropertiesFileName()
public void setPropertiesFileName(String propertiesFileName)
propertiesFileName - the propertiesFileName to setpublic int getCheckDelay()
public void setCheckDelay(int checkDelay)
checkDelay - the checkDelay to setpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionCopyright © 2019 ADDC Infotech GmbH. All rights reserved.