| org.ow2.easybeans.security.api.EZBSecurityContext
All known Subclasses: org.ow2.easybeans.security.propagation.context.SecurityContext, org.ow2.easybeans.security.propagation.jonas.JOnASSecurityContext,
EZBSecurityContext | public interface EZBSecurityContext (Code) | | Interface used to describe operations on a security context.
author: Florent Benoit |
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.
Parameters: runAsSubject - the subject to used in run-as mode. | Principal | getCallerPrincipal(boolean runAsBean) Gets the caller's principal.
Parameters: runAsBean - if true, the bean is a run-as bean. | Principal[] | getCallerRoles(boolean runAsBean) Gets the caller's roles.
Parameters: runAsBean - if true, the bean is a run-as bean. |
endsRunAs | 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 | 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 | 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 | 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. |
|
|