You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by ra...@apache.org on 2004/09/20 23:25:15 UTC

cvs commit: xml-security/src/org/apache/xml/security/signature Reference.java

raul        2004/09/20 14:25:15

  Modified:    src/org/apache/xml/security/signature Reference.java
  Log:
  Don't do defensive copy.
  
  Revision  Changes    Path
  1.35      +4 -12     xml-security/src/org/apache/xml/security/signature/Reference.java
  
  Index: Reference.java
  ===================================================================
  RCS file: /home/cvs/xml-security/src/org/apache/xml/security/signature/Reference.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- Reference.java	3 Aug 2004 18:01:19 -0000	1.34
  +++ Reference.java	20 Sep 2004 21:25:15 -0000	1.35
  @@ -436,16 +436,14 @@
   
            if (transforms != null) {
               output = transforms.performTransforms(input);
  -            this._transformsOutput = new XMLSignatureInput(output.getBytes());
  +            this._transformsOutput = output;//new XMLSignatureInput(output.getBytes());
   
  -            this._transformsOutput.setSourceURI(output.getSourceURI());
  +            //this._transformsOutput.setSourceURI(output.getSourceURI());
            } else {
               output = input;
            }
   
            return output;
  -      } catch (IOException ex) {
  -         throw new XMLSignatureException("empty", ex);
         } catch (ResourceResolverException ex) {
            throw new XMLSignatureException("empty", ex);
         } catch (CanonicalizationException ex) {
  @@ -614,16 +612,10 @@
             */
            if (!Reference.CacheSignedNodes) {
   
  -            this._transformsOutput = new XMLSignatureInput(output.getBytes());
  +            this._transformsOutput = output;//new XMLSignatureInput(output.getBytes());
   
  -            this._transformsOutput.setSourceURI(output.getSourceURI());
  +            //this._transformsOutput.setSourceURI(output.getSourceURI());
            }
  -      } catch (IOException ex) {
  -         throw new ReferenceNotInitializedException("empty", ex);
  -      } catch (CanonicalizationException ex) {
  -         throw new ReferenceNotInitializedException("empty", ex);
  -      } catch (InvalidCanonicalizerException ex) {
  -         throw new ReferenceNotInitializedException("empty", ex);
         } catch (XMLSecurityException ex) {
            throw new ReferenceNotInitializedException("empty", ex);
         }