public final class LoggingPermission extends BasicPermission
目前只有一个名叫loggingpermission。这是“控制”,它授予的能力来控制日志配置,例如通过添加或删除处理程序,通过添加或删除过滤器,或通过改变日志记录级别。
程序员通常不创造loggingpermission对象直接。相反,他们是由基于读取安全策略文件的安全策略代码创建的。
BasicPermission
,
Permission
,
Permissions
,
PermissionCollection
,
SecurityManager
,
Serialized Form
Constructor and Description |
---|
LoggingPermission(String name, String actions)
创建一个新的loggingpermission对象。
|
equals, getActions, hashCode, implies, newPermissionCollection
checkGuard, getName, toString
public LoggingPermission(String name, String actions) throws IllegalArgumentException
name
权限名称。必须是“控制”。
actions
-必须是null或空字符串。
null
name
NullPointerException
。
IllegalArgumentException
-如果参数无效
name
是空的或。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.