|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jonas.ejb.easybeans.JOnASSecurityContextWrapper
public class JOnASSecurityContextWrapper
Wrapper class for the JOnAS security.
It will propagate and read JOnAS security context.
| Constructor Summary | |
|---|---|
JOnASSecurityContextWrapper(SecurityContext 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 |
| Constructor Detail |
|---|
public JOnASSecurityContextWrapper(SecurityContext jonasSecurityContext)
jonasSecurityContext - the JOnAS context| Method Detail |
|---|
public java.security.Principal getCallerPrincipal(boolean runAsBean)
getCallerPrincipal in interface org.ow2.easybeans.security.api.EZBSecurityContextrunAsBean - if true, the bean is a run-as bean.
public java.security.Principal[] getCallerRoles(boolean runAsBean)
getCallerRoles in interface org.ow2.easybeans.security.api.EZBSecurityContextrunAsBean - if true, the bean is a run-as bean.
public javax.security.auth.Subject enterRunAs(javax.security.auth.Subject runAsSubject)
enterRunAs in interface org.ow2.easybeans.security.api.EZBSecurityContextrunAsSubject - the subject to used in run-as mode.
public void endsRunAs(javax.security.auth.Subject oldSubject)
endsRunAs in interface org.ow2.easybeans.security.api.EZBSecurityContextoldSubject - subject kept by container and restored.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||