public interface SecurityManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(ComponentInvocation inv) |
void |
destroy()
Call this method to clean up all the bookeeping data-structures in the SM.
|
Object |
doAsPrivileged(PrivilegedExceptionAction pea)
This method is used by SecurityUtil runMethod to run the action as the subject encapsulated in the cuurent
SecurityContext.
|
Principal |
getCallerPrincipal() |
Subject |
getCurrentSubject()
This will return the subject associated with the current call.
|
Object |
invoke(Method beanClassMethod,
boolean isLocal,
Object o,
Object[] oa) |
boolean |
isCallerInRole(String role) |
void |
postInvoke(ComponentInvocation inv)
This method is used by the Invocation Manager to remove the run-as identity information that was set up using the
preInvoke
|
void |
preInvoke(ComponentInvocation inv)
This sets up the security context - if not set and does run-as related login if required
|
void |
resetPolicyContext()
Purge ThreadLocals held by javax.security.jacc.PolicyContext
|
boolean authorize(ComponentInvocation inv)
The - Invocation object containing the details of the invocation.Principal getCallerPrincipal()
boolean isCallerInRole(String role)
The - EJB developer specified "logical role".void preInvoke(ComponentInvocation inv)
ComponentInvocation - void postInvoke(ComponentInvocation inv)
ComponentInvocation - void destroy()
Subject getCurrentSubject()
void resetPolicyContext()
Object doAsPrivileged(PrivilegedExceptionAction pea) throws Throwable
ThrowableCopyright © 2019. All rights reserved.