Name

Property Permissions

Type

java.util.PropertyPermission

Name

The name of the Java virtual machine property that you want to access. Property permission names are specified as dot-separated names (just as they are in a Java property file); in addition, the last element can be a wildcard asterisk: *, a.*, a.b.*, and so on. Note, however, that no other element can be a wildcard; *.b.c does not allow you to access the a.b.c property.

Actions

read and write.

Examples

// Read standard java properties
permission java.util.PropertyPermission "java.*", "read";
// Create properties in the sdo package
permission java.util.PropertyPermission "sdo.*", "read,write";

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.