Class SPNEGOLoginModule

  • All Implemented Interfaces:
    LoginModule

    public class SPNEGOLoginModule
    extends org.jboss.security.negotiation.spnego.SPNEGOLoginModule
    Modified version of SPNEGOLoginModule customized for portal purposes
    Author:
    Marek Posolda
    • Field Summary

      • Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule

        callbackHandler, log, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
    • Constructor Detail

      • SPNEGOLoginModule

        public SPNEGOLoginModule()
    • Method Detail

      • initialize

        public void initialize​(Subject subject,
                               CallbackHandler callbackHandler,
                               Map sharedState,
                               Map options)
        Specified by:
        initialize in interface LoginModule
        Overrides:
        initialize in class org.jboss.security.negotiation.spnego.SPNEGOLoginModule
      • innerLogin

        protected Object innerLogin()
                             throws LoginException
        Overrides:
        innerLogin in class org.jboss.security.negotiation.spnego.SPNEGOLoginModule
        Throws:
        LoginException
      • getIdentityFromSubject

        protected Principal getIdentityFromSubject​(Subject userSubject)
                                            throws LoginException
        Obtaining identity from subject. We need to find instance of UserPrincipal , which is added here during FORM authentication.
        Overrides:
        getIdentityFromSubject in class org.jboss.security.negotiation.spnego.SPNEGOLoginModule
        Parameters:
        userSubject - subject from FORM authentication
        Returns:
        identity
        Throws:
        LoginException