|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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(java.lang.String name)
Construct a new MBeanServer permission for a given name |
|
MBeanServerPermission(java.lang.String name,
java.lang.String actions)
Construct a new MBeanServer permission for a given name |
Method Summary | |
boolean |
implies(java.security.Permission p)
Checks if this MBeanServerPermission object "implies" the specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
Must override to handle the createMBeanServer <-> newMBeanServer relationship. |
java.lang.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(java.lang.String name)
name
- the name of the permission to grant
java.lang.NullPointerException
- if the name is null
java.lang.IllegalArgumentException
- if the name is not * or one of
listed namespublic MBeanServerPermission(java.lang.String name, java.lang.String actions)
name
- the name of the permission to grantactions
- unused
java.lang.NullPointerException
- if the name is null
java.lang.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 java.lang.String toString()
public boolean implies(java.security.Permission p)
p
-
public java.security.PermissionCollection newPermissionCollection()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |