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.SPNEGOLoginModuleModified version ofSPNEGOLoginModulecustomized for portal purposes- Author:
- Marek Posolda
-
-
Constructor Summary
Constructors Constructor Description SPNEGOLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PrincipalgetIdentityFromSubject(Subject userSubject)Obtaining identity from subject.voidinitialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)protected ObjectinnerLogin()-
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
-
-
-
-
Method Detail
-
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
protected Object innerLogin() throws LoginException
- Overrides:
innerLoginin classorg.jboss.security.negotiation.spnego.SPNEGOLoginModule- Throws:
LoginException
-
getIdentityFromSubject
protected Principal getIdentityFromSubject(Subject userSubject) throws LoginException
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
-
-