Class OpenNMSLoginModule

    • Field Detail

      • m_subject

        protected javax.security.auth.Subject m_subject
      • m_callbackHandler

        protected javax.security.auth.callback.CallbackHandler m_callbackHandler
      • m_sharedState

        protected java.util.Map<java.lang.String,​?> m_sharedState
      • m_options

        protected java.util.Map<java.lang.String,​?> m_options
      • m_user

        protected java.lang.String m_user
      • m_principals

        protected java.util.Set<java.security.Principal> m_principals
    • Constructor Detail

      • OpenNMSLoginModule

        public OpenNMSLoginModule()
    • Method Detail

      • initialize

        public void initialize​(javax.security.auth.Subject subject,
                               javax.security.auth.callback.CallbackHandler callbackHandler,
                               java.util.Map<java.lang.String,​?> sharedState,
                               java.util.Map<java.lang.String,​?> options)
        Specified by:
        initialize in interface javax.security.auth.spi.LoginModule
      • login

        public boolean login()
                      throws javax.security.auth.login.LoginException
        Specified by:
        login in interface javax.security.auth.spi.LoginModule
        Throws:
        javax.security.auth.login.LoginException
      • abort

        public boolean abort()
                      throws javax.security.auth.login.LoginException
        Specified by:
        abort in interface javax.security.auth.spi.LoginModule
        Throws:
        javax.security.auth.login.LoginException
      • logout

        public boolean logout()
                       throws javax.security.auth.login.LoginException
        Specified by:
        logout in interface javax.security.auth.spi.LoginModule
        Throws:
        javax.security.auth.login.LoginException
      • getUserConfig

        public static UserConfig getUserConfig()
      • setUserConfig

        public static void setUserConfig​(UserConfig userConfig)
      • setSpringSecurityUserDao

        public static void setSpringSecurityUserDao​(SpringSecurityUserDao userDao)
      • commit

        public boolean commit()
                       throws javax.security.auth.login.LoginException
        Specified by:
        commit in interface javax.security.auth.spi.LoginModule
        Throws:
        javax.security.auth.login.LoginException
      • callbackHandler

        public javax.security.auth.callback.CallbackHandler callbackHandler()
        Specified by:
        callbackHandler in interface LoginHandler
      • user

        public java.lang.String user()
        Specified by:
        user in interface LoginHandler
      • setUser

        public void setUser​(java.lang.String user)
        Specified by:
        setUser in interface LoginHandler
      • createPrincipals

        public java.util.Set<java.security.Principal> createPrincipals​(org.springframework.security.core.GrantedAuthority authority)
        Specified by:
        createPrincipals in interface LoginHandler
      • principals

        public java.util.Set<java.security.Principal> principals()
        Specified by:
        principals in interface LoginHandler
      • setPrincipals

        public void setPrincipals​(java.util.Set<java.security.Principal> principals)
        Specified by:
        setPrincipals in interface LoginHandler