Class 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:
    Serialized Form
    • Constructor Detail

      • RunAsRolePermission

        public RunAsRolePermission​(String roleName)