Module  java.xml.bind
软件包  javax.xml.bind

Class JAXBPermission

  • All Implemented Interfaces:
    SerializableGuard


    public final class JAXBPermission
    extends BasicPermission
    此类用于JAXB权限。 A JAXBPermission包含名称(也称为“目标名称”),但没有操作列表; 你有指定的权限,或者你没有。

    目标名称是JAXB权限的名称(见下文)。

    下表列出了所有可能的JAXBPermission目标名称,每个都提供了许可允许的描述以及授权许可的风险的讨论。

    Permission Target Name What the Permission Allows Risks of Allowing this Permission setDatatypeConverter Allows the code to set VM-wide DatatypeConverterInterface via the setDatatypeConverter method that all the methods on DatatypeConverter uses. Malicious code can set DatatypeConverterInterface, 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 as Frame.getFrames() that belongs to another application running in the same JVM.
    从以下版本开始:
    1.7,JAXB 2.2
    另请参见:
    BasicPermissionPermissionPermissionsPermissionCollectionSecurityManagerSerialized Form
    • 构造方法详细信息

      • JAXBPermission

        public JAXBPermission​(String name)
        创建具有指定名称的新JAXBPermission。
        参数
        name - The name of the JAXBPermission. As of 2.2 only "setDatatypeConverter" is defined.