Permission Directive

Nested Elements

Element Occurance Description
action 0..n The action descriptor.

Attributes

Attribute Required Description
class yes The name of the Permission class. This classname must be a subclass of the java.security.Permission class.
name no This is the first argument passed into the constructor. Most Permission classes calls this the "name" argument, but the has other names for certain permission classes, e.g. FilePermission calls it "path".

Description

Declaration of a permission requested by the container to its parent and grnated provisionally to the components defined within the scope of the container.

Example XML

    <permission class="java.lang.RuntimePermission" name="getClassLoader" />
    <permission class="java.util.PropertyPermission" name="java.*" >
      <action>read</action>
    </permission>
    <permission class="java.util.PropertyPermission" name="org.apache.*" >
      <action>read</action>
      <action>write</action>
    </permission>