|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.security.propagation.jonas.JOnASSecurityContext
public class JOnASSecurityContext
Wrapper class for the JOnAS security.
It will propagate and read JOnAS security context.
Field Summary | |
---|---|
private java.lang.Object |
jonasSecurityContext
Wrapped security context of JOnAS. |
Constructor Summary | |
---|---|
JOnASSecurityContext(java.lang.Object jonasSecurityContext)
Builds a security context around JOnAS 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.Object jonasSecurityContext
Constructor Detail |
---|
public JOnASSecurityContext(java.lang.Object jonasSecurityContext)
jonasSecurityContext
- the JOnAS contextMethod Detail |
---|
public java.security.Principal getCallerPrincipal(boolean runAsBean)
getCallerPrincipal
in interface EZBSecurityContext
runAsBean
- if true, the bean is a run-as bean.
public java.security.Principal[] getCallerRoles(boolean runAsBean)
getCallerRoles
in interface EZBSecurityContext
runAsBean
- if true, the bean is a run-as bean.
public javax.security.auth.Subject enterRunAs(javax.security.auth.Subject runAsSubject)
enterRunAs
in interface EZBSecurityContext
runAsSubject
- the subject to used in run-as mode.
public void endsRunAs(javax.security.auth.Subject oldSubject)
endsRunAs
in interface EZBSecurityContext
oldSubject
- subject kept by container and restored.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |