Permissions Class extending Object

/ Holds many Permission object's. Each scope is bound to a Permissions and whilst they are bounded to it they are restricted to what this object allows them to do. For example without a Permissions object in your scope with an IOPermission you will not be able to print or read input from the terminal or web client /

Class Methods

Constructs this Permissions object

function __construct() : void


Adds the given Permission object to this Permissions object.
If the scope that this method was called in does not hold the Permission it is trying to add then a PermissionException is thrown

function add(Permission perm) : void

Returns the Permission with the given name. If no permission is found null is returned

function get(string permission_name) : Permission