| Permission | Description | Risk |
|---|---|---|
| "jmx" "control" | Controls the ability of JMX clients to control Derby and view security sensitive attributes through Derby's MBeans. | JMX clients may be able to change the state of the running system |
| "jmx" "monitor" | Controls the ability of JMX clients to
monitor Derby through Derby's MBeans, such as viewing number of current connections and
configuration settings. Note: security related settings require control
action on jmx | JMX clients can see information about a runing system including software versions. |
| Modifier and Type | Class and Description |
|---|---|
| private static class | SystemPermission.SystemPermissionCollection
A collection of |
| Modifier and Type | Field and Description |
|---|---|
| private transient int | actionMask
Bit mask representing the actions. |
| private String | actions
Actions for this permission. |
| public static final String | CONTROL
Action ( |
| public static final String | ENGINE
Permission target name ( |
| public static final SystemPermission | ENGINE_MONITOR
Constant representing |
| public static final String | JMX
Permission target name ( |
| private static final List | LEGAL_ACTIONS
Set of legal actions in their canonical form. |
| private static final Set | LEGAL_NAMES
The legal system permission names. |
| public static final String | MONITOR
Action ( |
| private static final long | |
| public static final String | SERVER
Permission target name ( |
| public static final String | SHUTDOWN
The server and engine shutdown action ( |
| public static final String | USE_DERBY_INTERNALS
Action ( |
| Access | Constructor and Description |
|---|---|
| public | SystemPermission(String
the name of the SystemPermission name, String actions)Creates a new SystemPermission with the specified name. |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: comma-separated string with the actionsthe list of actions actions)Build a comma-separated actions string suitable for returning from
|
| private String | |
| public boolean | equals(Object
the object we are testing for equality with this object. other)Overrides java. |
| private static int | getActionMask(String actions)
Get a mask of bits that represents the actions and can be used for the implies method. |
| public String | getActions()
Overrides java. |
| private static String | |
| public boolean | implies(Permission
the permission to check against. permission)Overrides java. |
| public PermissionCollection | newPermissionCollection()
Overrides java. PermissionCollection object for storing
BasicPermission objects.
|
| public static Set | Returns: a set of all the specified actionsthe specified actions string actions)Get a set of all actions specified in a string. |
| private void | readObject(ObjectInputStream
the s)
Called upon deserialization for restoring the state of this
SystemPermission from a stream.
ObjectInputStream from which data is read |
| public String | |
| private void | validateNameAndActions(String
the name of the permission name, String the actions of the permission actions)Check if name and actions are valid, normalize the actions string, and calculate the actions mask. |
| actionMask | back to summary |
|---|---|
| private transient int actionMask Bit mask representing the actions. It is not serialized, and has to be recalculated when the object is deserialized. | |
| actions | back to summary |
|---|---|
| private String actions Actions for this permission. | |
| CONTROL | back to summary |
|---|---|
| public static final String CONTROL Action ( For JMX control permission is required to get attributes that are deemed sensiive from a security aspect, such as the network server's port number, security mechanisms and any information about the file system. | |
| ENGINE | back to summary |
|---|---|
| public static final String ENGINE Permission target name ( | |
| ENGINE_MONITOR | back to summary |
|---|---|
| public static final SystemPermission ENGINE_MONITOR Constant representing | |
| JMX | back to summary |
|---|---|
| public static final String JMX Permission target name ( | |
| LEGAL_ACTIONS | back to summary |
|---|---|
| private static final List<String> LEGAL_ACTIONS Set of legal actions in their canonical form. | |
| LEGAL_NAMES | back to summary |
|---|---|
| private static final Set<String> LEGAL_NAMES The legal system permission names. | |
| MONITOR | back to summary |
|---|---|
| public static final String MONITOR Action ( | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SERVER | back to summary |
|---|---|
| public static final String SERVER Permission target name ( | |
| SHUTDOWN | back to summary |
|---|---|
| public static final String SHUTDOWN The server and engine shutdown action ( | |
| USE_DERBY_INTERNALS | back to summary |
|---|---|
| public static final String USE_DERBY_INTERNALS Action ( | |
| SystemPermission | back to summary |
|---|---|
| public SystemPermission(String name, String actions) Creates a new SystemPermission with the specified name.
| |
| buildActionsString | back to summary |
|---|---|
| public static String buildActionsString(Iterable<String> actions) Build a comma-separated actions string suitable for returning from
| |
| doubleQuote | back to summary |
|---|---|
| private String doubleQuote(String raw) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Does this permission equal another object. True if its and identical class with same name and (canonical) actions.
| |
| getActionMask | back to summary |
|---|---|
| private static int getActionMask(String actions) Get a mask of bits that represents the actions and can be used for the implies method. | |
| getActions | back to summary |
|---|---|
| public String getActions() Overrides java. Return the permission's actions in a canonical form.
| |
| getCanonicalForm | back to summary |
|---|---|
| private static String getCanonicalForm(String actions) Return a canonical form of the passed in actions. Actions are lower-cased, in the order of LEGAL_ACTIONS and only appear once. | |
| implies | back to summary |
|---|---|
| public boolean implies(Permission permission) Overrides java. Does this permission imply another. Only true if the other permission is a SystemPermission with the same name and all the actions of the permission are present in this. Note that none of the actions imply any other with this SystemPermission.
| |
| newPermissionCollection | back to summary |
|---|---|
| public PermissionCollection newPermissionCollection() Overrides java. Doc from java. Returns a new
| |
| parseActions | back to summary |
|---|---|
| public static Set Get a set of all actions specified in a string. Actions are transformed to lower-case, and leading and trailing blanks are stripped off. | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException Hides java. Called upon deserialization for restoring the state of this SystemPermission from a stream.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string describing this | |
| validateNameAndActions | back to summary |
|---|---|
| private void validateNameAndActions(String name, String actions) Check if name and actions are valid, normalize the actions string, and calculate the actions mask.
| |
SystemPermission objects. Instances of this
class must be thread-safe and serializable, per the specification of
java.security.PermissionCollection.