Microsoft SDK for Java

excludeProperties

This method of the PropertyPermission Class explicitly excludes system properties from the set of properties that this permission allows access to.

Syntax

public void excludeProperties(String pattern);

Parameters

pattern The pattern that specifies the system properties that are explicitly prohibited. This pattern can contain wildcard expressions.

Remarks

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.

See Also

com.ms.util.WildcardExpression

© 1999 Microsoft Corporation. All rights reserved. Terms of use.