| java.lang.Object org.ow2.easybeans.security.propagation.jonas.JOnASSecurityContext
JOnASSecurityContext | public class JOnASSecurityContext implements EZBSecurityContext(Code) | | Wrapper class for the JOnAS security.
It will propagate and read JOnAS security context.
author: Florent Benoit |
Constructor Summary | |
public | JOnASSecurityContext(Object jonasSecurityContext) Builds a security context around JOnAS security context. |
Method Summary | |
public void | endsRunAs(Subject oldSubject) Ends the run-as mode and then restore the context stored by container. | public 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.
Parameters: runAsSubject - the subject to used in run-as mode. | public Principal | getCallerPrincipal(boolean runAsBean) Gets the caller's principal.
Parameters: runAsBean - if true, the bean is a run-as bean. | public Principal[] | getCallerRoles(boolean runAsBean) Gets the caller's roles.
Parameters: runAsBean - if true, the bean is a run-as bean. |
JOnASSecurityContext | public JOnASSecurityContext(Object jonasSecurityContext)(Code) | | Builds a security context around JOnAS security context.
Parameters: jonasSecurityContext - the JOnAS context |
endsRunAs | public void endsRunAs(Subject oldSubject)(Code) | | Ends the run-as mode and then restore the context stored by container.
Parameters: oldSubject - subject kept by container and restored. |
enterRunAs | public Subject enterRunAs(Subject runAsSubject)(Code) | | 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.
Parameters: runAsSubject - the subject to used in run-as mode. the previous subject. |
getCallerPrincipal | public Principal getCallerPrincipal(boolean runAsBean)(Code) | | Gets the caller's principal.
Parameters: runAsBean - if true, the bean is a run-as bean. principal of the caller. |
getCallerRoles | public Principal[] getCallerRoles(boolean runAsBean)(Code) | | Gets the caller's roles.
Parameters: runAsBean - if true, the bean is a run-as bean. array of roles of the caller. |
|
|