|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. The previous subject is stored and will be restored when run-as mode will be ended. |
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 contextMethod Detail |
---|
public Principal getCallerPrincipal(boolean runAsBean)
getCallerPrincipal
in interface org.ow2.easybeans.security.api.EZBSecurityContext
runAsBean
- if true, the bean is a run-as bean.
public Principal[] getCallerRoles(boolean runAsBean)
getCallerRoles
in interface org.ow2.easybeans.security.api.EZBSecurityContext
runAsBean
- if true, the bean is a run-as bean.
public Subject enterRunAs(Subject runAsSubject)
enterRunAs
in interface org.ow2.easybeans.security.api.EZBSecurityContext
runAsSubject
- the subject to used in run-as mode.
public void endsRunAs(Subject oldSubject)
endsRunAs
in interface org.ow2.easybeans.security.api.EZBSecurityContext
oldSubject
- subject kept by container and restored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |