public class SpringSecurityUserDaoImpl extends Object implements SpringSecurityUserDao, org.springframework.beans.factory.InitializingBean
ROLE_USER
Constructor and Description |
---|
SpringSecurityUserDaoImpl()
Instantiates a new spring security user DAO implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthoritiesByUsername(String username)
Gets the authorities by username.
|
protected org.springframework.security.core.GrantedAuthority |
getAuthority(String role)
Gets the authority.
|
SpringSecurityUser |
getByUsername(String username)
getByUsername
|
UserManager |
getUserManager()
Gets the user manager.
|
String |
getUsersConfigurationFile()
Gets the users configuration file.
|
long |
getUsersLastModified()
Gets the users last modified.
|
void |
setUserManager(UserManager mgr)
Sets the user manager.
|
void |
setUsersConfigurationFile(String usersConfigurationFile)
Sets the users configuration file.
|
public SpringSecurityUserDaoImpl()
protected org.springframework.security.core.GrantedAuthority getAuthority(String role)
role
- the roleprotected Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthoritiesByUsername(String username)
username
- the usernamepublic void setUsersConfigurationFile(String usersConfigurationFile)
usersConfigurationFile
- the new users configuration filepublic String getUsersConfigurationFile()
public SpringSecurityUser getByUsername(String username)
SpringSecurityUserDao
getByUsername
getByUsername
in interface SpringSecurityUserDao
username
- a String
object.OnmsUser
object.public long getUsersLastModified()
public UserManager getUserManager()
public void setUserManager(UserManager mgr)
mgr
- the new user managerpublic void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Copyright © 2021. All rights reserved.