alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (exc-signature.xml)

This example Java source code file (exc-signature.xml) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

algorithm, b8muoexb\+6znhfcs5vaw0hvn62yiebzrmkikx6sxo4dg9l8i5wbhn37vxukvhs8r, foo, inclusivenamespaces, kv1e7kjhz4gftozkgvc5clytmqnin99fylba6d\/\/bboktxtuekmwaa, l7\+s\/3auhnuzqd4b5bpdyamjxfwz6dl0mkixavvup9e, prefixlist, uri, utf\-8, withcomments

The exc-signature.xml Java example source code

<?xml version="1.0" encoding="UTF-8"?>
<Foo xmlns:bar="urn:bar" xmlns="urn:foo" xml:space="preserve">
  <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
    <dsig:SignedInfo>
      <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
      <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1" />
      <dsig:Reference URI="#xpointer(id('to-be-signed'))">
        <dsig:Transforms>
          <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
        </dsig:Transforms>
        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <dsig:DigestValue>7yOTjUu+9oEhShgyIIXDLjQ08aY=
      </dsig:Reference>
      <dsig:Reference URI="#xpointer(id('to-be-signed'))">
        <dsig:Transforms>
          <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
            <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="bar #default" />
          </dsig:Transform>
        </dsig:Transforms>
        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <dsig:DigestValue>09xMy0RTQM1Q91demYe/0F6AGXo=
      </dsig:Reference>
      <dsig:Reference URI="#xpointer(id('to-be-signed'))">
        <dsig:Transforms>
          <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments" />
        </dsig:Transforms>
        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <dsig:DigestValue>ZQH+SkCN8c5y0feAr+aRTZDwyvY=
      </dsig:Reference>
      <dsig:Reference URI="#xpointer(id('to-be-signed'))">
        <dsig:Transforms>
          <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments">
            <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="bar #default" />
          </dsig:Transform>
        </dsig:Transforms>
        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <dsig:DigestValue>a1cTqBgbqpUt6bMJN4C6zFtnoyo=
      </dsig:Reference>
    </dsig:SignedInfo>
    <dsig:SignatureValue>
      Kv1e7Kjhz4gFtOZKgvC5cLYtMQNIn99fyLBa6D//bBokTxTUEkMwaA==
    </dsig:SignatureValue>
    <dsig:KeyInfo>
      <dsig:KeyValue>
        <dsig:DSAKeyValue>
          <dsig:P>
            8FkJgwdyizV5Vd0m6DA/DZsdweJdnkueYVUd7L8aA4JpZxrlCI/M7mDE/OGhEhgB
            nFzSTrBjSFpT7DG66uy7oJeE+RgkXO7EWWOEglMPwaZgGgi1oZarv95VOx3uO8W8
            L7+S/3AuHNUZQD4b5bpdYAmjXFwz6dl0mKiXAvVuP9E=
          </dsig:P>
          <dsig:Q>
            mFf8DiMVNFXy0vag9oNGNW/g4u0=
          </dsig:Q>
          <dsig:G>
            g8gRdNlq9EOTR2TjmVApqCAZAq3jEjOIxXbs8JBiZ+U7dV9geeXEy13GbYoP23Qr
            apZQo+35diw+cMYPHjN+iUCwUkiGWv7/piAK+Ootfw03etL8XiVWjtL5NBof2CNp
            wmAw7mrwmNG092y1e6HXSGMMZpaoth/P8xhsxCQsqI8=
          </dsig:G>
          <dsig:Y>
            j0V14dc/I+okDAeG4ZbWUzb3HTFkEOC6feOMo5Dk218GcPqEKroVHaDBF9CmRV1v
            B8MUOExB+6ZNHfcs5Vaw0HVn62YiEBzrmKikx6SxO4Dg9L8I5WbHn37vxUKvHs8r
            7+rma3kpZQftTMiBpJ8XK8Z6jg8VhuJqo9yZZO+p3I0=
          </dsig:Y>
        </dsig:DSAKeyValue>
      </dsig:KeyValue>
    </dsig:KeyInfo>
    <dsig:Object Id="to-be-signed">
      <bar:Baz>
        <!--  comment -->
      </bar:Baz>
    </dsig:Object>
  </dsig:Signature>
</Foo>

Other Java examples (source code examples)

Here is a short list of links related to this Java exc-signature.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.