public class RunAsLoginModule extends Object implements LoginModule
Constructor and Description |
---|
RunAsLoginModule() |
Modifier and Type | Method and Description |
---|---|
boolean |
abort()
Pop the run as role using the SecurityAssociation.popRunAsIdentity method
|
boolean |
commit()
Calls abort to pop the run-as role
|
void |
initialize(Subject subject,
CallbackHandler handler,
Map<String,?> sharedState,
Map<String,?> 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() |
public void initialize(Subject subject, CallbackHandler handler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
public boolean login()
login
in interface LoginModule
SecurityContextAssociation.pushRunAsIdentity(org.jboss.security.RunAs)
public boolean commit()
commit
in interface LoginModule
public boolean abort()
abort
in interface LoginModule
SecurityContextAssociation.popRunAsIdentity()
public boolean logout()
logout
in interface LoginModule
Copyright © 2017 JBoss by Red Hat. All rights reserved.