This method of the PropertyPermission Class explicitly excludes system properties from the set of properties that this permission allows access to.
public void excludeProperties(String pattern);
pattern | The pattern that specifies the system properties that are explicitly prohibited. This pattern can contain wildcard expressions. |
Because access to all system properties is prohibited by default, this method is only useful to remove properties from those explicitly included by a wildcard expression. For example, the following code allows access to all properties beginning with 'java.' except for the property named "java.class.path":
... PropertyPermission perm = new PropertyPermission() eperm.includeProperties("java.*"); eperm.excludeProperties("java.class.path"); ...
Note This method does nothing if the permission object already specifies unrestricted access.
com.ms.util.WildcardExpression