Package org.gatein.sso.spnego
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected PrincipalgetIdentityFromSubject(Subject userSubject) Obtaining identity from subject.voidinitialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) protected ObjectMethods inherited from class org.jboss.security.negotiation.spnego.SPNEGOLoginModule
createIdentity, getRoleSets, getServerSubject, loginMethods inherited from class org.jboss.security.negotiation.common.CommonLoginModule
getCredential, getIdentity, processIdentityAndCredential, setIdentityMethods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
abort, addValidOptions, checkOptions, commit, createGroup, getCallerPrincipalGroup, getUnauthenticatedIdentity, getUseFirstPass, logout
-
Constructor Details
-
SPNEGOLoginModule
public SPNEGOLoginModule()
-
-
Method Details
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) - Specified by:
initializein interfaceLoginModule- Overrides:
initializein classorg.jboss.security.negotiation.spnego.SPNEGOLoginModule
-
innerLogin
- Overrides:
innerLoginin classorg.jboss.security.negotiation.spnego.SPNEGOLoginModule- Throws:
LoginException
-
getIdentityFromSubject
Obtaining identity from subject. We need to find instance ofUserPrincipal, which is added here during FORM authentication.- Overrides:
getIdentityFromSubjectin classorg.jboss.security.negotiation.spnego.SPNEGOLoginModule- Parameters:
userSubject- subject from FORM authentication- Returns:
- identity
- Throws:
LoginException
-