| |
|
| java.lang.Object org.jboss.aspects.security.SecurityContext
SecurityContext | public class SecurityContext (Code) | | Obtain security information based on the current security domain.
author: Bill Burke version: $Revision: 57186 $ |
getCallerPrincipal | public static Principal getCallerPrincipal()(Code) | | Get the caller's principal
|
getCurrentPrincipal | public static Principal getCurrentPrincipal()(Code) | | Get the current principal. Could be run-as, or propagated
|
isCallerInRole | public static boolean isCallerInRole(String roleName)(Code) | | Is the caller's security identity within the role
Does not include current run-as
Parameters: roleName - |
isCurrentInRole | public static boolean isCurrentInRole(String roleName)(Code) | | Checks current identity is within roleName
Does include current run-as
Parameters: roleName - |
|
|
|