Class OpenNMSUserDetailsService
- java.lang.Object
-
- org.opennms.web.springframework.security.OpenNMSUserDetailsService
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,org.springframework.security.core.userdetails.UserDetailsService
public class OpenNMSUserDetailsService extends java.lang.Object implements org.springframework.security.core.userdetails.UserDetailsService, org.springframework.beans.factory.InitializingBean
-
-
Constructor Summary
Constructors Constructor Description OpenNMSUserDetailsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
boolean
getTrimRealm()
SpringSecurityUserDao
getUserDao()
org.springframework.security.core.userdetails.UserDetails
loadUserByUsername(java.lang.String rawUsername)
void
setTrimRealm(boolean trimRealm)
void
setUserDao(SpringSecurityUserDao userDao)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(java.lang.String rawUsername) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
-
setUserDao
public void setUserDao(SpringSecurityUserDao userDao)
-
getUserDao
public SpringSecurityUserDao getUserDao()
-
setTrimRealm
public void setTrimRealm(boolean trimRealm)
- Parameters:
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.
-
getTrimRealm
public boolean getTrimRealm()
-
-