|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.security.Permission
java.security.BasicPermission
javax.management.MBeanTrustPermission
public class MBeanTrustPermission
此权限表示“信任”签名者或代码基。
MBeanTrustPermission 包含目标名但不包含操作列表。为此权限定义了单个目标名 "register"。还允许目标 "*",这允许 "register" 和以后可能定义的所有目标。要允许策略对象创建策略文件中指定的权限,只允许为操作指定 null 值或空字符串。
如果签名者或代码源被授予此权限,则将其认为是 MBean 的可信任源。只有来自可信任源的 MBean 才能在 MBeanServer 中注册。
| 构造方法摘要 | |
|---|---|
MBeanTrustPermission(String name)
创建具有给定名称的新 MBeanTrustPermission。 |
|
MBeanTrustPermission(String name,
String actions)
创建具有给定名称的新 MBeanTrustPermission。 |
|
| 方法摘要 |
|---|
| 从类 java.security.BasicPermission 继承的方法 |
|---|
equals, getActions, hashCode, implies, newPermissionCollection |
| 从类 java.security.Permission 继承的方法 |
|---|
checkGuard, getName, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public MBeanTrustPermission(String name)
创建具有给定名称的新 MBeanTrustPermission。
此构造方法等效于 MBeanTrustPermission(name,null)。
name - 权限名称。对于此权限而言,它必须是 "register" 或 "*"。
NullPointerException - 如果 name 为 null。
IllegalArgumentException - 如果 name 不是 "register" 或 "*"。
public MBeanTrustPermission(String name,
String actions)
创建具有给定名称的新 MBeanTrustPermission。
name - 权限名称。对于此权限而言,它必须是 "register" 或 "*"。actions - 该权限的操作。它必须为 null 或 ""。
NullPointerException - 如果 name 为 null。
IllegalArgumentException - 如果 name 不是 "register" 也不是 "*";如果 actions 是非 null 非空的字符串。
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。