Deprecated
for removal since 25.
This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for this class.
MBeanTrustPermission contains a target name but no actions list. A single target name, "register", is defined for this permission. The target "*" is also allowed, permitting "register" and any future targets that may be defined. Only the null value or the empty string are allowed for the action to allow the policy object to create the permissions specified in the policy file.
API Note
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported. Consequently this class is deprecated for removal in a future release.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | MBeanTrustPermission(String
the name of the permission. It must be
"register" or "*" for this permission. name)Create a new MBeanTrustPermission with the given name. |
| public | MBeanTrustPermission(String
the name of the permission. It must be
"register" or "*" for this permission. name, String the actions for the permission. It must be
null or actions)"".Create a new MBeanTrustPermission with the given name. |
| Modifier and Type | Method and Description |
|---|---|
| private void | readObject(ObjectInputStream in)
Hides java.
|
| private static void |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MBeanTrustPermission | back to summary |
|---|---|
| public MBeanTrustPermission(String name) Create a new MBeanTrustPermission with the given name. This constructor is equivalent to
| |
| MBeanTrustPermission | back to summary |
|---|---|
| public MBeanTrustPermission(String name, String actions) Create a new MBeanTrustPermission with the given name.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException Hides java. Doc from java.
| |
| validate | back to summary |
|---|---|
| private static void validate(String name, String actions) | |