Class SetPermissionsAction

  • All Implemented Interfaces:
    PrivilegedExceptionAction<Object>

    public class SetPermissionsAction
    extends Object
    implements PrivilegedExceptionAction<Object>
    Action to get declared permissions for a given module type, process them if needed, and attempt to set them in a class loader.

    This action will only actually do work if there's a security manager installed. If there is no such manager this will be a NO-OP.

    If the client VM doesn't have the required privileges for the requested permissions an AccessControlException will be thrown.