public class OpenNMSUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
OpenNMSUserDetailsService() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
boolean |
getTrimRealm() |
SpringSecurityUserDao |
getUserDao() |
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String rawUsername) |
void |
setTrimRealm(boolean trimRealm) |
void |
setUserDao(SpringSecurityUserDao userDao) |
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String rawUsername) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
org.springframework.security.core.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
public void setUserDao(SpringSecurityUserDao userDao)
public SpringSecurityUserDao getUserDao()
public void setTrimRealm(boolean trimRealm)
trimRealm
- Defaults to false. If set to true, trim the realm
portion (e.g. @EXAMPLE.ORG) from the authenticated user principal
name (e.g. user@EXAMPLE.ORG). Useful when authenticating against a
Kerberos realm or possibly other realm- / domain-aware technologies
such as OAUTH.public boolean getTrimRealm()
Copyright © 2021. All rights reserved.