| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class MBeanServerPermission extends BasicPermission
A Permission to perform actions related to MBeanServers.
The name of the permission specifies the operation requested
or granted by the permission. For a granted permission, it can be
*
to allow all of the MBeanServer operations specified below.
Otherwise, for a granted or requested permission, it must be one of the
following:
MBeanServerPermission("createMBeanServer")
implies
MBeanServerPermission("newMBeanServer")
.
Constructor Summary | |
---|---|
MBeanServerPermission(String name) Create a new MBeanServerPermission with the given name. |
|
MBeanServerPermission(String name, String actions) Create a new MBeanServerPermission with the given name. |
Method Summary | |
---|---|
boolean |
Checks two MBeanServerPermission objects for equality. |
int |
hashCode() Returns the hash code value for this object. |
boolean |
Checks if this MBeanServerPermission object "implies" the specified permission. |
PermissionCollection |
Returns a new PermissionCollection object for storing BasicPermission objects. |
Methods inherited from class java.security.BasicPermission |
---|
equals, getActions, hashCode, implies, newPermissionCollection |
Methods inherited from class java.security.Permission |
---|
checkGuard, equals, getActions, getName, hashCode, implies, newPermissionCollection, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MBeanServerPermission(String name)
Create a new MBeanServerPermission with the given name.
This constructor is equivalent to
MBeanServerPermission(name,null)
.
name
- the name of the granted permission. It must
respect the constraints spelt out in the description of the
{@link MBeanServerPermission} class.public MBeanServerPermission(String name, String actions)
Create a new MBeanServerPermission with the given name.
name
- the name of the granted permission. It must
respect the constraints spelt out in the description of the
{@link MBeanServerPermission} class.actions
- the associated actions. This parameter is not
currently used and must be null or the empty string.Method Detail |
---|
public boolean equals(Object obj)
equals
in class BasicPermission
obj
- the object we are testing for equality with this object.public int hashCode()
hashCode
in class BasicPermission
public boolean implies(Permission p)
Checks if this MBeanServerPermission object "implies" the specified permission.
More specifically, this method returns true if:
The createMBeanServer
permission implies the
newMBeanServer
permission.
implies
in class BasicPermission
p
- the permission to check against.public PermissionCollection newPermissionCollection()
newPermissionCollection
in class BasicPermission
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |