You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ru...@apache.org on 2006/11/27 09:46:07 UTC
svn commit: r479545 - in /webservices/wss4j/trunk:
lib/xmlsec-1.4.SNAPSHOT.jar
src/org/apache/ws/security/transform/STRTransform.java
Author: ruchithf
Date: Mon Nov 27 00:46:06 2006
New Revision: 479545
URL: http://svn.apache.org/viewvc?view=rev&rev=479545
Log:
Moving back to xml-sec-1.3.0, this will works with xml-sec-1.4 as well
Removed:
webservices/wss4j/trunk/lib/xmlsec-1.4.SNAPSHOT.jar
Modified:
webservices/wss4j/trunk/src/org/apache/ws/security/transform/STRTransform.java
Modified: webservices/wss4j/trunk/src/org/apache/ws/security/transform/STRTransform.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/transform/STRTransform.java?view=diff&rev=479545&r1=479544&r2=479545
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/transform/STRTransform.java (original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/transform/STRTransform.java Mon Nov 27 00:46:06 2006
@@ -30,22 +30,16 @@
import org.apache.xml.security.c14n.Canonicalizer;
import org.apache.xml.security.c14n.InvalidCanonicalizerException;
import org.apache.xml.security.signature.XMLSignatureInput;
-import org.apache.xml.security.transforms.Transform;
import org.apache.xml.security.transforms.TransformSpi;
-import org.apache.xml.security.transforms.TransformationException;
import org.apache.ws.security.util.Base64;
import org.apache.xml.security.utils.XMLUtils;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Text;
-import org.xml.sax.SAXException;
-
-import javax.xml.parsers.ParserConfigurationException;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
-import java.io.OutputStream;
import java.security.cert.CertificateEncodingException;
import java.security.cert.X509Certificate;
@@ -94,10 +88,17 @@
protected String engineGetURI() {
return STRTransform.implementedTransformURI;
}
-
-
- protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, OutputStream os, Transform _transformObject) throws IOException, CanonicalizationException, InvalidCanonicalizerException, TransformationException, ParserConfigurationException, SAXException {
+ /**
+ * Method enginePerformTransform
+ *
+ * @param input
+ * @throws CanonicalizationException
+ * @throws InvalidCanonicalizerException
+ */
+ protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input)
+ throws IOException, CanonicalizationException,
+ InvalidCanonicalizerException {
doDebug = log.isDebugEnabled();
@@ -110,7 +111,7 @@
/*
* Get the main document, that is the complete SOAP request document
*/
- Document thisDoc = _transformObject.getDocument();
+ Document thisDoc = this._transformObject.getDocument();
int docHash = thisDoc.hashCode();
if (doDebug) {
log.debug("doc: " + thisDoc.toString() + ", " + docHash);
@@ -138,9 +139,9 @@
*/
String canonAlgo = null;
- if (_transformObject.length(WSConstants.WSSE_NS,
+ if (this._transformObject.length(WSConstants.WSSE_NS,
"TransformationParameters") == 1) {
- Element tmpE = XMLUtils.selectNode(_transformObject
+ Element tmpE = XMLUtils.selectNode(this._transformObject
.getElement().getFirstChild(), WSConstants.WSSE_NS,
"TransformationParameters", 0);
Element canonElem = (Element) WSSecurityUtil.getDirectChild(
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org