|
Préférences
Moteurs de recherche
|
||||||||||||
JavaTM 2 Platform Std. Ed. v1.5.0
javax.management
|
Constructor Summary | |
---|---|
MBeanTrustPermission(String name)
Create a new MBeanTrustPermission with the given name. |
|
MBeanTrustPermission(String name,
String actions)
Create a new MBeanTrustPermission with the given name. |
Method Summary |
---|
Methods inherited from class java.security.BasicPermission |
---|
equals, getActions, hashCode, implies, newPermissionCollection |
Methods inherited from class java.security.Permission |
---|
checkGuard, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MBeanTrustPermission(String name)
Create a new MBeanTrustPermission with the given name.
This constructor is equivalent to
MBeanTrustPermission(name,null)
.
name
- the name of the permission. It must be
"register" or "*" for this permission.
NullPointerException
- if the name is null.
IllegalArgumentException
- if the name is neither
"register" nor "*".public MBeanTrustPermission(String name, String actions)
Create a new MBeanTrustPermission with the given name.
name
- the name of the permission. It must be
"register" or "*" for this permission.actions
- the actions for the permission. It must be
null or ""
.
NullPointerException
- if the name is null.
IllegalArgumentException
- if the name is neither
"register" nor "*"; or if actions
is a non-null
non-empty string.