|
|||||||||
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(javax.security.auth.Subject oldSubject)
Ends the run-as mode and then restore the context stored by container. |
javax.security.auth.Subject |
enterRunAs(javax.security.auth.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. |
java.security.Principal |
getCallerPrincipal(boolean runAsBean)
Gets the caller's principal. |
java.security.Principal[] |
getCallerRoles(boolean runAsBean)
Gets the caller's roles. |
Method Detail |
---|
java.security.Principal getCallerPrincipal(boolean runAsBean)
runAsBean
- if true, the bean is a run-as bean.
javax.security.auth.Subject enterRunAs(javax.security.auth.Subject runAsSubject)
runAsSubject
- the subject to used in run-as mode.
void endsRunAs(javax.security.auth.Subject oldSubject)
oldSubject
- subject kept by container and restored.java.security.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 |