org.jboss.security.negotiation.spnego
Class SPNEGOLoginModule

java.lang.Object
  extended by org.jboss.security.auth.spi.AbstractServerLoginModule
      extended by org.jboss.security.negotiation.spnego.SPNEGOLoginModule
All Implemented Interfaces:
LoginModule

public class SPNEGOLoginModule
extends org.jboss.security.auth.spi.AbstractServerLoginModule

Login module to work in conjunction with SPNEGOAuthenticator to handle the authentication requirements.

Version:
$Revision: 83572 $
Author:
darran.lofthouse@jboss.com

Field Summary
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, log, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
SPNEGOLoginModule()
           
 
Method Summary
protected  Principal getIdentity()
           
protected  Group[] getRoleSets()
           
protected  Subject getServerSubject()
           
 void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
           
 boolean login()
           
 
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
abort, commit, createGroup, createIdentity, getUnauthenticatedIdentity, getUseFirstPass, logout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.auth.spi.AbstractServerLoginModule

login

public boolean login()
              throws LoginException
Specified by:
login in interface LoginModule
Overrides:
login in class org.jboss.security.auth.spi.AbstractServerLoginModule
Throws:
LoginException

getIdentity

protected Principal getIdentity()
Specified by:
getIdentity in class org.jboss.security.auth.spi.AbstractServerLoginModule

getRoleSets

protected Group[] getRoleSets()
                       throws LoginException
Specified by:
getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModule
Throws:
LoginException

getServerSubject

protected Subject getServerSubject()
                            throws LoginException
Throws:
LoginException


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.