public class PropertyPermission
extends java.security.Permission
PropertyLoader.getProperty(String)
or
PropertyLoader.getProperty(String, String)
or PropertyRegistry.setProperty(String, String)
or
PropertyRegistry.removeProperty(String)
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GET_ACTION
Action associated with
PropertyLoader.getProperty(String) or
PropertyLoader.getProperty(String, String) . |
static java.lang.String |
REMOVE_ACTION
Action associated with
PropertyRegistry.removeProperty(String) . |
static java.lang.String |
SET_ACTION
Action associated with
PropertyRegistry.setProperty(String, String) . |
Constructor and Description |
---|
PropertyPermission(java.lang.String parentName,
java.lang.String key,
java.lang.String action)
Creates a permission for the given property.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActions() |
java.lang.String |
getKey()
Gets the property key handled by this permission.
|
int |
hashCode() |
boolean |
implies(java.security.Permission permission) |
public static final java.lang.String GET_ACTION
PropertyLoader.getProperty(String)
or
PropertyLoader.getProperty(String, String)
.public static final java.lang.String SET_ACTION
PropertyRegistry.setProperty(String, String)
.public static final java.lang.String REMOVE_ACTION
PropertyRegistry.removeProperty(String)
.public PropertyPermission(java.lang.String parentName, java.lang.String key, java.lang.String action)
The action can be one of
, GET_ACTION
or
SET_ACTION
.REMOVE_ACTION
parentName
- the name of the service loader or service registry.key
- the property key.action
- the action realized with the service.public java.lang.String getActions()
getActions
in class java.security.Permission
public java.lang.String getKey()
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.security.Permission
public int hashCode()
hashCode
in class java.security.Permission
public boolean implies(@Nullable java.security.Permission permission)
implies
in class java.security.Permission