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, newPermissionCollectioncheckGuard, getName, toStringpublic LoggingPermission(String name, String actions) throws IllegalArgumentException
name - 权限名称。
必须是“控制”。
actions - 必须为null或空字符串。
NullPointerException - 如果
name是
null 。
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.