- java.lang.Object
-
- java.security.Permission
-
- java.security.BasicPermission
-
- javax.xml.bind.JAXBPermission
-
- All Implemented Interfaces:
-
Serializable
,Guard
public final class JAXBPermission extends BasicPermission
此类用于JAXB权限。 AJAXBPermission
包含名称(也称为“目标名称”),但没有操作列表; 你有指定的权限,或者你没有。目标名称是JAXB权限的名称(见下文)。
下表列出了所有可能的
Permission Target Name What the Permission Allows Risks of Allowing this Permission setDatatypeConverter Allows the code to set VM-wideJAXBPermission
目标名称,每个都提供了许可允许的描述以及授权许可的风险的讨论。DatatypeConverterInterface
viathe setDatatypeConverter method
that all the methods onDatatypeConverter
uses. Malicious code can setDatatypeConverterInterface
, which has VM-wide singleton semantics, before a genuine JAXB implementation sets one. This allows malicious code to gain access to objects that it may otherwise not have access to, such asFrame.getFrames()
that belongs to another application running in the same JVM.- 从以下版本开始:
- 1.7,JAXB 2.2
- 另请参见:
-
BasicPermission
,Permission
,Permissions
,PermissionCollection
,SecurityManager
, Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 JAXBPermission(String name)
创建具有指定名称的新JAXBPermission。
-
方法摘要
-
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.security.Permission
checkGuard, getName, toString
-
-
-
-
构造方法详细信息
-
JAXBPermission
public JAXBPermission(String name)
创建具有指定名称的新JAXBPermission。- 参数
-
name
- The name of the JAXBPermission. As of 2.2 only "setDatatypeConverter" is defined.
-
-