Class OpenNMSUserDetailsService

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean, org.springframework.security.core.userdetails.UserDetailsService

    public class OpenNMSUserDetailsService
    extends Object
    implements org.springframework.security.core.userdetails.UserDetailsService, org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • OpenNMSUserDetailsService

        public OpenNMSUserDetailsService()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • loadUserByUsername

        public org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(String rawUsername)
                                                                                     throws org.springframework.security.core.userdetails.UsernameNotFoundException,
                                                                                            org.springframework.dao.DataAccessException
        Specified by:
        loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException
        org.springframework.dao.DataAccessException
      • 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()