|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.auth.spi.RunAsLoginModule
A login module that establishes a run-as role for the duration of the login phase of authentication. It can be used to allow another login module interact with a secured EJB that provides authentication services.
Constructor Summary | |
RunAsLoginModule()
|
Method Summary | |
boolean |
abort()
Pop the run as role using the SecurityAssociation.popRunAsIdentity method |
boolean |
commit()
Calls abort to pop the run-as role |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
java.util.Map sharedState,
java.util.Map options)
Look for the roleName option that specifies the role to use as the run-as role. |
boolean |
login()
Push the run as role using the SecurityAssociation.pushRunAsIdentity method |
boolean |
logout()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RunAsLoginModule()
Method Detail |
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler, java.util.Map sharedState, java.util.Map options)
initialize
in interface javax.security.auth.spi.LoginModule
public boolean login()
login
in interface javax.security.auth.spi.LoginModule
SecurityAssociation.pushRunAsIdentity(RunAsIdentity)
public boolean commit()
commit
in interface javax.security.auth.spi.LoginModule
public boolean abort()
abort
in interface javax.security.auth.spi.LoginModule
SecurityAssociation.popRunAsIdentity()
public boolean logout()
logout
in interface javax.security.auth.spi.LoginModule
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |