|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.aspects.security.SecurityContext
Obtain security information based on the current security domain.
Field Summary | |
protected static ThreadLocal |
currentDomain
|
Constructor Summary | |
SecurityContext()
|
Method Summary | |
static Principal |
getCallerPrincipal()
Get the caller's principal |
static Principal |
getCurrentPrincipal()
Get the current principal. |
static boolean |
isCallerInRole(String roleName)
Is the caller's security identity within the role Does not include current run-as |
static boolean |
isCurrentInRole(String roleName)
Checks current identity is within roleName Does include current run-as |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static ThreadLocal currentDomain
Constructor Detail |
public SecurityContext()
Method Detail |
public static Principal getCallerPrincipal()
public static Principal getCurrentPrincipal()
public static boolean isCallerInRole(String roleName)
roleName
-
public static boolean isCurrentInRole(String roleName)
roleName
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |