org.apache.tools.ant.types
public class Permissions extends Object
Since: Ant 1.6
| Nested Class Summary | |
|---|---|
| static class | Permissions.Permission Represents a permission. |
| Constructor Summary | |
|---|---|
| Permissions()
Create a set of Permissions. | |
| Permissions(boolean delegateToOldSM)
Create a set of permissions. | |
| Method Summary | |
|---|---|
| void | addConfiguredGrant(Permissions.Permission perm)
Adds a permission to be granted. |
| void | addConfiguredRevoke(Permissions.Permission perm)
Adds a permission to be revoked. |
| void | restoreSecurityManager()
To be used by tasks that just finished executing the parts subject to these permissions. |
| void | setSecurityManager()
To be used by tasks wishing to use this security model before executing the part to be
subject to these Permissions. |
new Permissions(false).Parameters: delegateToOldSM if true the old security manager
will be used if the permission has not been explicitly granted or revoked
in this instance.
Parameters: perm The Permissions.Permission to be granted.
Parameters: perm The Permissions.Permission to be revoked
Throws: BuildException on error