Class RunAsRolePermission

java.lang.Object
java.security.Permission
java.security.BasicPermission
org.jboss.as.controller.access.rbac.RunAsRolePermission
All Implemented Interfaces:
Serializable, Guard

public final class RunAsRolePermission extends BasicPermission
A simple Permission to allow code being executed without an associated remote to be granted the permission to execute using a specified role. Initially by default only one role is used for in-vm calls, however this could be extended to allow different in-vm calls to be granted different roles. Where a Subject representing a remote user is already combined with the AccessControlContext this SecurityManager check is not used.
Author:
Darran Lofthouse
See Also:
  • Constructor Details

    • RunAsRolePermission

      public RunAsRolePermission(String roleName)