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()
default constructor | |
Permissions(boolean delegateToOldSM)
create a new 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. |
Parameters: delegateToOldSM if true
the old security manager
will be used if the permission has not been explicitly granted or revoked
in this instance
if false, it behaves like the default constructor
Parameters: perm The Permissions.Permission to be granted.
Parameters: perm The Permissions.Permission to be revoked