| |
|
| java.lang.Object java.security.Permission java.security.BasicPermission javax.management.MBeanServerPermission
Field Summary | |
transient int | mask |
Constructor Summary | |
public | MBeanServerPermission(String name) Create a new MBeanServerPermission with the given name.
This constructor is equivalent to
MBeanServerPermission(name,null) .
Parameters: name - the name of the granted permission. | public | MBeanServerPermission(String name, String actions) Create a new MBeanServerPermission with the given name.
Parameters: name - the name of the granted permission. | | MBeanServerPermission(int mask) |
Method Summary | |
public boolean | equals(Object obj) Checks two MBeanServerPermission objects for equality. | static String | getCanonicalName(int mask) | public int | hashCode() | static int | impliedMask(int mask) | public boolean | implies(Permission p) Checks if this MBeanServerPermission object "implies" the specified
permission.
More specifically, this method returns true if:
- p is an instance of MBeanServerPermission,
- p's target names are a subset of this object's target
names
The createMBeanServer permission implies the
newMBeanServer permission.
Parameters: p - the permission to check against. | public PermissionCollection | newPermissionCollection() | static int | simplifyMask(int mask) |
MBeanServerPermission | public MBeanServerPermission(String name)(Code) | | Create a new MBeanServerPermission with the given name.
This constructor is equivalent to
MBeanServerPermission(name,null) .
Parameters: name - the name of the granted permission. It mustrespect the constraints spelt out in the description of theMBeanServerPermission class. exception: NullPointerException - if the name is null. exception: IllegalArgumentException - if the name is not* or one of the allowed names or a comma-separatedlist of the allowed names. |
MBeanServerPermission | public MBeanServerPermission(String name, String actions)(Code) | | Create a new MBeanServerPermission with the given name.
Parameters: name - the name of the granted permission. It mustrespect the constraints spelt out in the description of theMBeanServerPermission class. Parameters: actions - the associated actions. This parameter is notcurrently used and must be null or the empty string. exception: NullPointerException - if the name is null. exception: IllegalArgumentException - if the name is not* or one of the allowed names or a comma-separatedlist of the allowed names, or if actions is a non-nullnon-empty string. throws: NullPointerException - if name is null . throws: IllegalArgumentException - if name is empty orif arguments are invalid. |
MBeanServerPermission | MBeanServerPermission(int mask)(Code) | | |
equals | public boolean equals(Object obj)(Code) | | Checks two MBeanServerPermission objects for equality. Checks that
obj is an MBeanServerPermission, and represents the same
list of allowable actions as this object.
Parameters: obj - the object we are testing for equality with this object. true if the objects are equal. |
getCanonicalName | static String getCanonicalName(int mask)(Code) | | |
hashCode | public int hashCode()(Code) | | |
impliedMask | static int impliedMask(int mask)(Code) | | |
implies | public boolean implies(Permission p)(Code) | | Checks if this MBeanServerPermission object "implies" the specified
permission.
More specifically, this method returns true if:
- p is an instance of MBeanServerPermission,
- p's target names are a subset of this object's target
names
The createMBeanServer permission implies the
newMBeanServer permission.
Parameters: p - the permission to check against. true if the specified permission is implied by this object,false if not. |
simplifyMask | static int simplifyMask(int mask)(Code) | | |
|
|
|