DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35919>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35919

           Summary: Base64 transform  closed stream
           Product: Security
           Version: Java 1.2.1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Signature
        AssignedTo: security-dev@xml.apache.org
        ReportedBy: [EMAIL PROTECTED]


"java.io.IOException.Stream closed" 
 at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)

signature  with BASE64 transform

code snipet where it is occured :
Transforms transforms = new Transforms(doc);
 
              XPathContainer xpath = new XPathContainer(doc);
              String xp1 =
 "ancestor-or-self::didl:[EMAIL PROTECTED]";
              xpath.setXPathNamespaceContext("didl",DIDL_NS);
              xpath.setXPath(xp1);
              transforms.addTransform(Transforms.TRANSFORM_XPATH,
 xpath.getElementPlusReturns());
              transforms.addTransform(Transforms.TRANSFORM_BASE64_DECODE);
               xmlSig.addDocument(refurl, transforms,
 Constants.ALGO_ID_DIGEST_SHA1);
 
 xmlSig.addKeyInfo(cert); 
            xmlSig.sign(privateKey);

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to