Additional top-level class in compilation unit: MBeanServerPermissionCollection.
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.
* to allow all of the MBeanServer operations specified below.
Otherwise, for a granted or requested permission, it must be one of the
following:
MBeanServerFactory#createMBeanServer() or
MBeanServerFactory#createMBeanServer(java.lang.String) .
MBeanServerFactory#findMBeanServer.
MBeanServerFactory#newMBeanServer() or
MBeanServerFactory#newMBeanServer(java.lang.String) .
MBeanServerFactory#releaseMBeanServer.
MBeanServerPermission("createMBeanServer") implies
MBeanServerPermission("newMBeanServer").
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 int | |
| private static final String[] | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv transient int | |
| private static final int | |
| private static final String[] | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | MBeanServerPermission(String
the name of the granted permission. It must
respect the constraints spelt out in the description of the
name)MBeanServerPermission class.Create a new MBeanServerPermission with the given name. |
| public | MBeanServerPermission(String
the name of the granted permission. It must
respect the constraints spelt out in the description of the
name, String MBeanServerPermission class.the associated actions. This parameter is not
currently used and must be null or the empty string. actions)Create a new MBeanServerPermission with the given name. |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the objects are equal.the object we are testing for equality with this object. obj)Overrides java. Checks two MBeanServerPermission objects for equality. |
| pack-priv static String | |
| public int | hashCode()
Overrides java. Returns the hash code value for this object. |
| pack-priv static int | |
| public boolean | Returns: true if the specified permission is implied by this object, false if not.the permission to check against. p)Overrides java. Checks if this MBeanServerPermission object "implies" the specified permission. |
| private static String | |
| private static int | |
| public PermissionCollection | newPermissionCollection()
Overrides java. Returns a new |
| private static int | |
| private void | readObject(ObjectInputStream in)
Hides java.
|
| pack-priv static int |
| ALL_MASK | back to summary |
|---|---|
| private static final int ALL_MASK | |
| canonicalNames | back to summary |
|---|---|
| private static final String[] canonicalNames | |
| CREATE | back to summary |
|---|---|
| private static final int CREATE | |
| CREATE_MASK | back to summary |
|---|---|
| private static final int CREATE_MASK | |
| FIND | back to summary |
|---|---|
| private static final int FIND | |
| FIND_MASK | back to summary |
|---|---|
| private static final int FIND_MASK | |
| mask | back to summary |
|---|---|
| pack-priv transient int mask | |
| N_NAMES | back to summary |
|---|---|
| private static final int N_NAMES | |
| names | back to summary |
|---|---|
| private static final String[] names | |
| NEW | back to summary |
|---|---|
| private static final int NEW | |
| NEW_MASK | back to summary |
|---|---|
| private static final int NEW_MASK | |
| RELEASE | back to summary |
|---|---|
| private static final int RELEASE | |
| RELEASE_MASK | back to summary |
|---|---|
| private static final int RELEASE_MASK | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MBeanServerPermission | back to summary |
|---|---|
| public MBeanServerPermission(String name) Create a new MBeanServerPermission with the given name. This constructor is equivalent to
| |
| MBeanServerPermission | back to summary |
|---|---|
| public MBeanServerPermission(String name, String actions) Create a new MBeanServerPermission with the given name.
| |
| MBeanServerPermission | back to summary |
|---|---|
| pack-priv MBeanServerPermission(int mask) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Checks two MBeanServerPermission objects for equality. Checks that obj is an MBeanServerPermission, and represents the same list of allowable actions as this object.
| |
| getCanonicalName | back to summary |
|---|---|
| pack-priv static String getCanonicalName(int mask) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns the hash code value for this object.
The hash code used is the hash code of the name, that is,
| |
| impliedMask | back to summary |
|---|---|
| pack-priv static int impliedMask(int mask) | |
| implies | back to summary |
|---|---|
| public boolean implies(Permission p) Overrides java. Checks if this MBeanServerPermission object "implies" the specified permission. More specifically, this method returns true if:
The
| |
| makeCanonicalName | back to summary |
|---|---|
| private static String makeCanonicalName(int mask) | |
| nameIndex | back to summary |
|---|---|
| private static int nameIndex(String name) throws IllegalArgumentException | |
| newPermissionCollection | back to summary |
|---|---|
| public PermissionCollection newPermissionCollection() Overrides java. Doc from java. Returns a new
| |
| parseMask | back to summary |
|---|---|
| private static int parseMask(String name) | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException Hides java. Doc from java.
| |
| simplifyMask | back to summary |
|---|---|
| pack-priv static int simplifyMask(int mask) | |