首页 > 其他分享 >XAdES-L 是什么东西 (附 xmldsig.xsd & XAdES.xsd)

XAdES-L 是什么东西 (附 xmldsig.xsd & XAdES.xsd)

时间:2023-06-06 13:25:44浏览次数:56  
标签:adding verification xsd org XAdES xmldsig

 

首先订正,没有XAdES-L ,只有 XAdES-X-L

https://en.wikipedia.org/wiki/XAdES

 

  • XAdES (also named XAdES-BES for "Basic Electronic Signature"), basic form just satisfying Directive legal requirements for advanced signature;
  • XAdES-T (timestamp), adding timestamp field to protect against repudiation;
  • XAdES-C (complete), adding references to verification data (certificates and revocation lists) to the signed documents to allow off-line verification and verification in future (but does not store the actual data);
  • XAdES-X (extended), adding timestamps on the references introduced by XAdES-C to protect against possible compromise of certificates in chain in future;
  • XAdES-X-L (extended long-term), adding actual certificates and revocation lists to the signed document to allow verification in future even if their original source is not available;
  • XAdES-A (archival), adding possibility for periodical timestamping (e.g. each year) of the archived document to prevent compromise caused by weakening signature during long-time storage period.

XAdES 文档

http://www.etsi.org/deliver/etsi_ts%5C101900_101999%5C101903%5C01.04.02_60%5Cts_101903v010402p.pdf

XAdES 语法

http://uri.etsi.org/01903/v1.4.1/XAdES01903v141-201601.xsd

xmldsig 语法

https://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd#

 

"?" denotes zero or one occurrence; (0/1)

"+" denotes one or more occurrences;(1/N)

"*" denotes zero or more occurrences.(0/N)

 

最简 -X-L 示例:

<?xml version="1.0" encoding="utf-8"?>

<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">  
  <ds:SignedInfo> 
    <ds:CanonicalizationMethod/>  
    <ds:SignatureMethod/>  
    <ds:Reference> 
      <ds:DigestMethod/>  
      <ds:DigestValue/> 
    </ds:Reference> 
  </ds:SignedInfo>  
  <ds:SignatureValue/>  
  <ds:Object> 
    <QualifyingProperties> 
      <SignedProperties> 
        <SignedSignatureProperties></SignedSignatureProperties>  
        <SignedDataObjectProperties></SignedDataObjectProperties> 
      </SignedProperties>  
      <UnsignedProperties> 
        <UnsignedSignatureProperties>(CompleteCertificateRefs) (CompleteRevocationRefs) (CertificatesValues) (RevocationValues)</UnsignedSignatureProperties> 
      </UnsignedProperties> 
    </QualifyingProperties> 
  </ds:Object> 
</ds:Signature>

 

最简 -BES 示例:

<?xml version="1.0" encoding="utf-8"?>

<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">  
  <ds:SignedInfo> 
    <ds:CanonicalizationMethod/>  
    <ds:SignatureMethod/>  
    <ds:Reference> 
      <ds:DigestMethod/>  
      <ds:DigestValue/> 
    </ds:Reference> 
  </ds:SignedInfo>  
  <ds:SignatureValue/>  
  <ds:Object> 
    <QualifyingProperties> 
      <SignedProperties> 
        <SignedSignatureProperties></SignedSignatureProperties>  
        <SignedDataObjectProperties></SignedDataObjectProperties> 
      </SignedProperties>  
      <UnsignedProperties> 
        <UnsignedSignatureProperties></UnsignedSignatureProperties> 
      </UnsignedProperties> 
    </QualifyingProperties> 
  </ds:Object> 
</ds:Signature>

 

标签:adding,verification,xsd,org,XAdES,xmldsig
From: https://www.cnblogs.com/zno2/p/6430065.html

相关文章

  • xades4j : 如何创建-T
     用到哪些类,对应哪些元素xades4j.properties.UnsignedPropertiesxades4j.properties.UnsignedSignaturePropertyxades4j.properties.SignatureTimeStampProperty  具体实现importjava.util.ArrayList;importjava.util.Collection;importorg.apache.xml.securi......
  • xades4j 苦苦寻找的是啥 (源码 == 找到了测试用例 == 找到了用法)
    <dependency><groupId>com.googlecode.xades4j</groupId><artifactId>xades4j</artifactId><version>1.3.2</version></dependency>https://github.com/luisgoncalves/xades4j源码和junit(大量的测试用例,告诉我们什么是xades......
  • error C1083: 无法打开包括文件:“dxsdkver.h”: No such file or directory
    参考1:https://www.cnblogs.com/AI-Algorithms/p/3778527.html参考2:https://learn.microsoft.com/zh-cn/windows/win32/directx-sdk--august-2009-?redirectedfrom=MSDN参考3:https://www.microsoft.com/en-us/download/details.aspx?id=6812......
  • Web开发|XML Schema (XSD) 学习
    采用XSD建立教师、学生之间的关系。假设有两个实体“学生”和“教师”,一个学生可以有多个老师,一个老师也可以有多个学生,二者为多对多的关系。在XSD中描述多对多的关系可以使用XML元素的引用和复杂类型的组合,使用中间表(或连接表)来表示多对多关系。首先,我们定义“学生”和“教师”......
  • IDEA中进行SpringBoot整合spring-ws开发webservice接口后期要修改xsd文件流程
    场景SpringBoot整合spring-ws开发webservice接口(全流程详细教程)现在接口已经开发完毕,但是在后期进行调试时发现在C#程序中进行调用时某个接口没有响应。原因是不同接口中存......
  • Webservice开发之xsd中开发请求数据的响应接口
    实现<xs:schemaxmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns:tns="http://test.com/webservice/pda"targetNamespace="http://test.com/webservice/pda"......
  • xml和xsd
    1·XMLschema元素|菜鸟教程(runoob.com)https://www.runoob.com/schema/el-schema.html2·XSD杂项数据类型(MiscellaneousDataTypes)(w3school.com.cn)https://w......
  • Linux系统之部署MxsDoc个人文件管理系统
    (Linux系统之部署MxsDoc个人文件管理系统)一、MxsDoc介绍1.MxsDoc简介MxsDoc是基于Web的开源文件管理系统。2.MxsDoc功能支持权限管理历史版本管理Office预览/编......
  • XSD 杂项 数据类型
    其他杂项数据类型包括布尔、base64Binary、十六进制、浮点、双精度、anyURI、anyURI以及NOTATION。布尔数据类型(BooleanDataType)布尔数据性用于规定true或false值。......
  • XSD 字符串 数据类型概述
    字符串数据类型用于可包含字符串的值。字符串数据类型(StringDataType)字符串数据类型可包含字符、换行、回车以及制表符。下面是一个关于某个scheme中字符串声明的例子:<x......