⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 signature.tmpl

📁 如何实现安全的xml机制
💻 TMPL
字号:
<Document>  <ToBeSigned>    <!-- comment -->    <Data></Data>    <NotToBeSigned>      <ReallyToBeSigned>        <!-- comment -->        <Data></Data>      </ReallyToBeSigned>    </NotToBeSigned>  </ToBeSigned>  <ToBeSigned>    <Data></Data>    <NotToBeSigned>      <Data></Data>    </NotToBeSigned>  </ToBeSigned>  <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">    <SignedInfo>      <CanonicalizationMethod Algorithm="" />      <SignatureMethod Algorithm="" />      <Reference URI="">        <Transforms>          <Transform Algorithm="http://www.w3.org/2002/04/xmldsig-filter2">            <XPath xmlns="http://www.w3.org/2002/04/xmldsig-filter2" Filter="intersect">              //ToBeSigned            </XPath>          </Transform>          <Transform Algorithm="http://www.w3.org/2002/04/xmldsig-filter2">            <XPath xmlns="http://www.w3.org/2002/04/xmldsig-filter2" Filter="subtract">              //NotToBeSigned            </XPath>          </Transform>          <Transform Algorithm="http://www.w3.org/2002/04/xmldsig-filter2">            <XPath xmlns="http://www.w3.org/2002/04/xmldsig-filter2" Filter="union">              //ReallyToBeSigned            </XPath>          </Transform>        </Transforms>        <DigestMethod Algorithm="" />        <DigestValue />      </Reference>      <Reference URI="#xpointer(/)">        <Transforms>          <Transform Algorithm="http://www.w3.org/2002/04/xmldsig-filter2">            <XPath xmlns="http://www.w3.org/2002/04/xmldsig-filter2" Filter="intersect">              //ToBeSigned            </XPath>          </Transform>          <Transform Algorithm="http://www.w3.org/2002/04/xmldsig-filter2">            <XPath xmlns="http://www.w3.org/2002/04/xmldsig-filter2" Filter="subtract">              //NotToBeSigned            </XPath>          </Transform>          <Transform Algorithm="http://www.w3.org/2002/04/xmldsig-filter2">            <XPath xmlns="http://www.w3.org/2002/04/xmldsig-filter2" Filter="union">              //ReallyToBeSigned            </XPath>          </Transform>          <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />        </Transforms>        <DigestMethod Algorithm="" />        <DigestValue />      </Reference>    </SignedInfo>    <SignatureValue />    <!-- key info -->  </Signature></Document>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -