|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission java.security.BasicPermission javax.management.MBeanServerPermission
Controls access to actions performed on MBeanServers. The name specifies the permission applies to an operation. The special value * applies to all operations.
MBeanServerFactory.createMBeanServer()
or
MBeanServerFactory.createMBeanServer(java.lang.String)
MBeanServerFactory.findMBeanServer(java.lang.String)
MBeanServerFactory.newMBeanServer()
or
MBeanServerFactory.newMBeanServer(java.lang.String)
MBeanServerFactory.releaseMBeanServer(javax.management.MBeanServer)
Constructor Summary | |
MBeanServerPermission(String name)
Construct a new MBeanServer permission for a given name |
|
MBeanServerPermission(String name,
String actions)
Construct a new MBeanServer permission for a given name |
Method Summary | |
boolean |
implies(Permission p)
Checks if this MBeanServerPermission object "implies" the specified permission. |
PermissionCollection |
newPermissionCollection()
Must override to handle the createMBeanServer <-> newMBeanServer relationship. |
String |
toString()
|
Methods inherited from class java.security.BasicPermission |
equals, getActions, hashCode |
Methods inherited from class java.security.Permission |
checkGuard, getName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MBeanServerPermission(String name)
name
- the name of the permission to grant
NullPointerException
- if the name is null
IllegalArgumentException
- if the name is not * or one of
listed namespublic MBeanServerPermission(String name, String actions)
name
- the name of the permission to grantactions
- unused
NullPointerException
- if the name is null
IllegalArgumentException
- if the name is not * or one of the
allowed names or a comma-separated list of the allowed names, or if
actions is a non-null non-empty string.Method Detail |
public String toString()
public boolean implies(Permission p)
p
-
public PermissionCollection newPermissionCollection()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |