signature.tmpl

来自「如何实现安全的xml机制」· TMPL 代码 · 共 70 行

TMPL
70
字号
<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 + =
减小字号Ctrl + -
显示快捷键?