You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2005/07/28 18:11:19 UTC
DO NOT REPLY [Bug 35919] New: -
Base64 transform closed stream
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: ludab@lanl.gov
"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:Resource[@encoding]";
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.