Class LumisLoginModule

  • All Implemented Interfaces:
    javax.security.auth.spi.LoginModule

    @StableMinor(version="17.0",
                 sinceVersion="4.0")
    public class LumisLoginModule
    extends java.lang.Object
    implements javax.security.auth.spi.LoginModule
    Login Module used to login users registered in LumisXP.
    Since:
    4.0.4
    Version:
    $Revision$ $Date$
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean abort()  
      boolean commit()  
      protected java.lang.String getLogin()
      Returns the login provided by the user
      protected java.lang.String getModuleName()
      Returns the Login module name used to display information to standard out.
      protected char[] getPassword()
      Returns the password provided by the user
      void initialize​(javax.security.auth.Subject arg0, javax.security.auth.callback.CallbackHandler arg1, java.util.Map<java.lang.String,​?> arg2, java.util.Map<java.lang.String,​?> arg3)  
      protected java.lang.String localize​(java.lang.String stringToLocalize)  
      boolean login()  
      boolean logout()  
      protected boolean validateLogin()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • subject

        protected javax.security.auth.Subject subject
      • callbackHandler

        protected javax.security.auth.callback.CallbackHandler callbackHandler
      • options

        protected java.util.Map options
      • debug

        protected boolean debug
      • succeeded

        protected boolean succeeded
      • commitSucceeded

        protected boolean commitSucceeded
      • login

        protected java.lang.String login
      • password

        protected char[] password
      • mfaToken

        protected char[] mfaToken
    • Constructor Detail

      • LumisLoginModule

        public LumisLoginModule()
    • Method Detail

      • getLogin

        protected java.lang.String getLogin()
        Returns the login provided by the user
        Returns:
        Since:
        4.0.10
      • getPassword

        protected char[] getPassword()
        Returns the password provided by the user
        Returns:
        Since:
        4.0.10
      • getModuleName

        protected java.lang.String getModuleName()
        Returns the Login module name used to display information to standard out.
        Returns:
        The login module name
        Since:
        4.0.10
      • initialize

        public void initialize​(javax.security.auth.Subject arg0,
                               javax.security.auth.callback.CallbackHandler arg1,
                               java.util.Map<java.lang.String,​?> arg2,
                               java.util.Map<java.lang.String,​?> arg3)
        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
      • validateLogin

        protected boolean validateLogin()
                                 throws javax.security.auth.login.LoginException
        Throws:
        javax.security.auth.login.LoginException
      • 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
      • 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
      • localize

        protected java.lang.String localize​(java.lang.String stringToLocalize)