GeezerVison is showing docs.oracle.com — PropertyPermission (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
compact1, compact2, compact3
java.util
Class PropertyPermission
-
-
Method Summary
All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
boolean |
equals(Object obj) |
Checks two PropertyPermission objects for equality.
|
String |
getActions() |
Returns the "canonical string representation" of the actions.
|
int |
hashCode() |
Returns the hash code value for this object.
|
boolean |
implies(Permission p) |
Checks if this PropertyPermission object "implies" the specified
permission.
|
PermissionCollection |
newPermissionCollection() |
Returns a new PermissionCollection object for storing
PropertyPermission objects.
|
-
-
Constructor Detail
-
PropertyPermission
public PropertyPermission(String name,
String actions)
Creates a new PropertyPermission object with the specified name.
The name is the name of the system property, and
actions contains a comma-separated list of the
desired actions granted on the property. Possible actions are
"read" and "write".
- Parameters:
name - the name of the PropertyPermission.
actions - the actions string.
- Throws:
NullPointerException - if name is null.
IllegalArgumentException - if name is empty or if
actions is invalid.
-
Method Detail
-
getActions
public String getActions()
Returns the "canonical string representation" of the actions.
That is, this method always returns present actions in the following order:
read, write. For example, if this PropertyPermission object
allows both write and read actions, a call to getActions
will return the string "read,write".
- Overrides:
getActions in class BasicPermission
- Returns:
- the canonical string representation of the actions.
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|