public final class LinkPermission extends BasicPermission
Permission
类链接创建操作。
下表提供了许可允许的简要说明,并讨论了授予代码许可的风险。
Permission Target Name What the Permission Allows Risks of Allowing this Permission hard Ability to add an existing file to a directory. This is sometimes known as creating a link, or hard link. Extreme care should be taken when granting this permission. It allows linking to any file or directory in the file system thus allowing the attacker access to all files. symbolic Ability to create symbolic links. Extreme care should be taken when granting this permission. It allows linking to any file or directory in the file system thus allowing the attacker to access to all files.Constructor and Description |
---|
LinkPermission(String name)
构造一个
LinkPermission 具有指定名称。
|
LinkPermission(String name, String actions)
构造一个
LinkPermission 具有指定名称。
|
equals, getActions, hashCode, implies, newPermissionCollection
checkGuard, getName, toString
public LinkPermission(String name)
LinkPermission
具有指定名称。
name
- name
的名称。
它必须是“硬”或“象征性”的。
IllegalArgumentException
- 如果名称为空或无效
public LinkPermission(String name, String actions)
LinkPermission
具有指定名称。
name
- name
的名称;
必须是“硬”或“象征性”的。
actions
- actions
的动作;
必须是空字符串或null
IllegalArgumentException
- if name is empty or invalid, or actions is a non-empty string
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.