Package org.teiid.jboss
Class AssosiateCallerIdentityLoginModule
- java.lang.Object
-
- org.jboss.security.auth.spi.AbstractServerLoginModule
-
- org.teiid.jboss.AssosiateCallerIdentityLoginModule
-
- All Implemented Interfaces:
LoginModule
public class AssosiateCallerIdentityLoginModule extends org.jboss.security.auth.spi.AbstractServerLoginModule
This login modules simply takes the subject in the current context and adds its principle to shared state. This is same as CallerIdentityLoginModule, just it does not extend the AbstractPasswordCredentialLoginModule
-
-
Constructor Summary
Constructors Constructor Description AssosiateCallerIdentityLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Principal
getIdentity()
protected Group[]
getRoleSets()
void
initialize(Subject subject, CallbackHandler handler, Map sharedState, Map options)
boolean
login()
Performs the login association between the caller and the resource for a 1 to 1 mapping.
-
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler handler, Map sharedState, Map options)
- Specified by:
initialize
in interfaceLoginModule
- Overrides:
initialize
in classorg.jboss.security.auth.spi.AbstractServerLoginModule
-
login
public boolean login() throws LoginException
Performs the login association between the caller and the resource for a 1 to 1 mapping. This acts as a login propagation strategy and is useful for single-sign on requirements- Specified by:
login
in interfaceLoginModule
- Overrides:
login
in classorg.jboss.security.auth.spi.AbstractServerLoginModule
- Returns:
- True if authentication succeeds
- Throws:
LoginException
-
getIdentity
protected Principal getIdentity()
- Specified by:
getIdentity
in classorg.jboss.security.auth.spi.AbstractServerLoginModule
-
getRoleSets
protected Group[] getRoleSets() throws LoginException
- Specified by:
getRoleSets
in classorg.jboss.security.auth.spi.AbstractServerLoginModule
- Throws:
LoginException
-
-