santuario-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geu...@apache.org
Subject cvs commit: xml-security/src_samples/org/apache/xml/security/samples/signature CreateMerlinsExampleSixteen.java
Date Mon, 09 Sep 2002 14:27:08 GMT
geuerp      2002/09/09 07:27:08

  Modified:    src_samples/org/apache/xml/security/samples/signature
                        CreateMerlinsExampleSixteen.java
  Log:
  We now create HTML files to help seeing what's being signed
  
  Revision  Changes    Path
  1.11      +11 -1     xml-security/src_samples/org/apache/xml/security/samples/signature/CreateMerlinsExampleSixteen.java
  
  Index: CreateMerlinsExampleSixteen.java
  ===================================================================
  RCS file: /home/cvs/xml-security/src_samples/org/apache/xml/security/samples/signature/CreateMerlinsExampleSixteen.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- CreateMerlinsExampleSixteen.java	28 Aug 2002 13:57:23 -0000	1.10
  +++ CreateMerlinsExampleSixteen.java	9 Sep 2002 14:27:08 -0000	1.11
  @@ -471,6 +471,15 @@
         System.out.println("Wrote signature to " + BaseURI);
   
         SignedInfo s = sig.getSignedInfo();
  +      for (int i=0; i<s.getLength(); i++) {
  +         Reference r = s.item(i);
  +         String fn = "merlin16_"+i+".html";
  +         System.out.println("Wrote Reference " + i + " to file " + fn);
  +         JavaUtils.writeBytesToFilename(fn, r.getHTMLRepresentation().getBytes());
  +      }
  +
  +
  +      /*
         for (int i=0; i<s.getSignedContentLength(); i++) {
            if (s.item(i).getType().equals(Reference.MANIFEST_URI)) {
               System.out.println("################ Signed Manifest " + i + " ################");
  @@ -480,6 +489,7 @@
            System.out.println(new String(s.getSignedContentItem(i)));
            System.out.println();
         }
  +      */
      }
   
      /**
  
  
  

Mime
View raw message