|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jonas.ejb.easybeans.JOnASSecurityContextWrapper
public class JOnASSecurityContextWrapper
Wrapper class for the JOnAS security.
It will propagate and read JOnAS security context.
| Constructor Summary | |
|---|---|
JOnASSecurityContextWrapper(SecurityContext jonasSecurityContext)
Builds a security context around JOnAS security context. |
|
| Method Summary | |
|---|---|
void |
endsRunAs(Subject oldSubject)
Ends the run-as mode and then restore the context stored by container. |
Subject |
enterRunAs(Subject runAsSubject)
Enters in run-as mode with the given subject. |
Principal |
getCallerPrincipal(boolean runAsBean)
Gets the caller's principal. |
Principal[] |
getCallerRoles(boolean runAsBean)
Gets the caller's roles. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JOnASSecurityContextWrapper(SecurityContext jonasSecurityContext)
jonasSecurityContext - the JOnAS context| Method Detail |
|---|
public Principal getCallerPrincipal(boolean runAsBean)
getCallerPrincipal in interface org.ow2.easybeans.security.api.EZBSecurityContextrunAsBean - if true, the bean is a run-as bean.
public Principal[] getCallerRoles(boolean runAsBean)
getCallerRoles in interface org.ow2.easybeans.security.api.EZBSecurityContextrunAsBean - if true, the bean is a run-as bean.
public Subject enterRunAs(Subject runAsSubject)
enterRunAs in interface org.ow2.easybeans.security.api.EZBSecurityContextrunAsSubject - the subject to used in run-as mode.
public void endsRunAs(Subject oldSubject)
endsRunAs in interface org.ow2.easybeans.security.api.EZBSecurityContextoldSubject - subject kept by container and restored.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||