Class SPNEGOLoginModule

java.lang.Object
org.jboss.security.auth.spi.AbstractServerLoginModule
org.jboss.security.negotiation.common.CommonLoginModule
org.jboss.security.negotiation.spnego.SPNEGOLoginModule
org.gatein.sso.spnego.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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Principal
    Obtaining identity from subject.
    void
    initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
     
    protected Object
     

    Methods inherited from class org.jboss.security.negotiation.spnego.SPNEGOLoginModule

    createIdentity, getRoleSets, getServerSubject, login

    Methods inherited from class org.jboss.security.negotiation.common.CommonLoginModule

    getCredential, getIdentity, processIdentityAndCredential, setIdentity

    Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule

    abort, addValidOptions, checkOptions, commit, createGroup, getCallerPrincipalGroup, getUnauthenticatedIdentity, getUseFirstPass, logout

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SPNEGOLoginModule

      public SPNEGOLoginModule()
  • Method Details

    • 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