|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EZBSecurityContext
Interface used to describe operations on a 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. |
| Method Detail |
|---|
Principal getCallerPrincipal(boolean runAsBean)
runAsBean - if true, the bean is a run-as bean.
Subject enterRunAs(Subject runAsSubject)
runAsSubject - the subject to used in run-as mode.
void endsRunAs(Subject oldSubject)
oldSubject - subject kept by container and restored.Principal[] getCallerRoles(boolean runAsBean)
runAsBean - if true, the bean is a run-as bean.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||