public class Permissions
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Permissions.PermissionRepresents a permission. | 
| Constructor and Description | 
|---|
| Permissions()Create a set of Permissions. | 
| Permissions(boolean delegateToOldSM)Create a set of permissions. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public Permissions()
new Permissions(false).public Permissions(boolean delegateToOldSM)
delegateToOldSM - if true the old security manager
 will be used if the permission has not been explicitly granted or revoked
 in this instance.public void addConfiguredGrant(Permissions.Permission perm)
perm - The Permissions.Permission to be granted.public void addConfiguredRevoke(Permissions.Permission perm)
perm - The Permissions.Permission to be revokedpublic void setSecurityManager()
                        throws BuildException
BuildException - on errorpublic void restoreSecurityManager()