Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/java/org/swssf/test/utils/XMLStreamHelper.java
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/java/org/swssf/test/utils/XMLStreamHelper.java?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/java/org/swssf/test/utils/XMLStreamHelper.java
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/java/org/swssf/test/utils/XMLStreamHelper.java
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,263 @@
+/**
+ *
+ * Copyright 2004 Protique Ltd
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.swssf.test.utils;
+
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.AttributesImpl;
+
+import javax.xml.namespace.NamespaceContext;
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * class lent from apache cxf
+ */
+
+/**
+ * Utility methods for working with an XMLStreamWriter. Maybe push this back
into
+ * stax-utils project.
+ *
+ * @version $Revision$
+ */
+public class XMLStreamHelper implements XMLStreamConstants {
+ private static Attributes emptyAttributes = new AttributesImpl();
+
+
+ /**
+ * Returns true if currently at the start of an element, otherwise move
forwards to
+ * the next element start and return true, otherwise false is returned if
the end of
+ * the stream is reached.
+ */
+ public static boolean skipToStartOfElement(XMLStreamReader in) throws
XMLStreamException {
+ for (int code = in.getEventType(); code != END_DOCUMENT; code =
in.next()) {
+ if (code == START_ELEMENT) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public static void writeStartElement(QName qname, ContentHandler handler)
throws SAXException {
+ handler.startElement(qname.getNamespaceURI(), qname.getLocalPart(),
QNameHelper.getQualifiedName(qname), emptyAttributes);
+ }
+
+ public static void writeEndElement(QName qname, ContentHandler handler)
throws SAXException {
+ handler.endElement(qname.getNamespaceURI(), qname.getLocalPart(),
QNameHelper.getQualifiedName(qname));
+ }
+
+
+ /**
+ * Copies the current element and its conetnt to the output
+ */
+ public static void copy(XMLStreamReader in, XMLStreamWriter out, boolean
repairing) throws XMLStreamException {
+ int elementCount = 0;
+ for (int code = in.getEventType(); in.hasNext(); code = in.next()) {
+ elementCount = copyOne(in, out, repairing, code, elementCount);
+ }
+ while (elementCount-- > 0) {
+ out.writeEndElement();
+ }
+ }
+
+ /**
+ *
+ */
+ public static int copyOne(XMLStreamReader in, XMLStreamWriter out, boolean
repairing, int code, int elementCount) throws XMLStreamException {
+ switch (code) {
+ case START_ELEMENT:
+ elementCount++;
+ writeStartElementAndAttributes(out, in, repairing);
+ break;
+
+ case END_ELEMENT:
+ if (--elementCount < 0) {
+ return elementCount;
+ }
+ out.writeEndElement();
+ break;
+
+ case CDATA:
+ out.writeCData(in.getText());
+ break;
+
+ case CHARACTERS:
+ out.writeCharacters(in.getText());
+ break;
+ }
+ return elementCount;
+ }
+
+ public static void writeStartElement(XMLStreamWriter out, String prefix,
String uri, String localName, boolean repairing) throws XMLStreamException {
+ boolean map = isPrefixNotMappedToUri(out, prefix, uri);
+ if (prefix != null && prefix.length() > 0) {
+ if (map) {
+ out.setPrefix(prefix, uri);
+ }
+ out.writeStartElement(prefix, localName, uri);
+ if (map && !repairing) {
+ out.writeNamespace(prefix, uri);
+ }
+ } else {
+ boolean hasURI = uri != null && uri.length() > 0;
+ if (map && hasURI) {
+ out.setDefaultNamespace(uri);
+ }
+ out.writeStartElement(uri, localName);
+ if (map && !repairing && hasURI) {
+ out.writeDefaultNamespace(uri);
+ }
+ }
+ }
+
+ public static void writeStartElement(XMLStreamWriter out, QName
envelopeName, boolean repairing) throws XMLStreamException {
+ writeStartElement(out, envelopeName.getPrefix(),
envelopeName.getNamespaceURI(), envelopeName.getLocalPart(), repairing);
+ }
+
+ public static void writeStartElement(XMLStreamWriter out, XMLStreamReader
in, boolean repairing) throws XMLStreamException {
+ String prefix = in.getPrefix();
+
+ // we can avoid this step if in repairing mode
+ int count = in.getNamespaceCount();
+ for (int i = 0; i < count; i++) {
+ String aPrefix = in.getNamespacePrefix(i);
+ if (prefix.equals(aPrefix) || (prefix != null &&
prefix.equals(aPrefix))) {
+ continue;
+ }
+ String uri = in.getNamespaceURI(i);
+ if (isPrefixNotMappedToUri(out, aPrefix, uri)) {
+ if (aPrefix != null && aPrefix.length() > 0) {
+ out.setPrefix(aPrefix, uri);
+ } else {
+ out.setDefaultNamespace(uri);
+ }
+ }
+ }
+ String localName = in.getLocalName();
+ String uri = in.getNamespaceURI();
+ writeStartElement(out, prefix, uri, localName, repairing);
+ }
+
+
+ public static void writeStartElementAndAttributes(XMLStreamWriter out,
XMLStreamReader in, boolean repairing) throws XMLStreamException {
+ writeStartElement(out, in, repairing);
+ if (!repairing) {
+ writeNamespaces(out, in, in.getPrefix());
+ }
+ writeAttributes(out, in);
+ }
+
+ public static void writeAttributes(XMLStreamWriter out, XMLStreamReader
in) throws XMLStreamException {
+ int count = in.getAttributeCount();
+ for (int i = 0; i < count; i++) {
+ out.writeAttribute(in.getAttributePrefix(i),
+ in.getAttributeNamespace(i),
+ in.getAttributeLocalName(i),
+ in.getAttributeValue(i));
+ }
+ }
+
+ public static void writeNamespaces(XMLStreamWriter out, XMLStreamReader
in, String prefixOfCurrentElement) throws XMLStreamException {
+ int count = in.getNamespaceCount();
+ for (int i = 0; i < count; i++) {
+ String prefix = in.getNamespacePrefix(i);
+ String uri = in.getNamespaceURI(i);
+
+/* // ROGER
+ if ( prefixOfCurrentElement == null && (prefix == null ||
prefix.length()==0) ) {
+ continue;
+ }
+*/
+ if (prefixOfCurrentElement != null &&
prefixOfCurrentElement.equals(prefix)) {
+ continue;
+ }
+ if (isPrefixNotMappedToUri(out, prefix, uri)) {
+ out.writeNamespace(prefix, uri);
+ }
+ }
+ }
+
+
+ public static void
writeNamespacesExcludingPrefixAndNamespace(XMLStreamWriter out, XMLStreamReader
in, String ignorePrefix, String ignoreNamespace) throws XMLStreamException {
+ int count = in.getNamespaceCount();
+ for (int i = 0; i < count; i++) {
+ String prefix = in.getNamespacePrefix(i);
+ if (!ignorePrefix.equals(prefix)) {
+ String uri = in.getNamespaceURI(i);
+ if (!ignoreNamespace.equals(uri)) {
+ out.writeNamespace(prefix, uri);
+ }
+ }
+ }
+ }
+
+ public static void writeAttribute(XMLStreamWriter out, QName name, String
attributeValue) throws XMLStreamException {
+ writeAttribute(out, name.getPrefix(), name.getNamespaceURI(),
name.getLocalPart(), attributeValue);
+ }
+
+ public static void writeAttribute(XMLStreamWriter out, String prefix,
String namespaceURI, String localPart, String attributeValue) throws
XMLStreamException {
+ out.writeAttribute(prefix, namespaceURI, localPart, attributeValue);
+ }
+
+ protected static boolean isPrefixNotMappedToUri(XMLStreamWriter out,
String prefix, String uri) {
+ if (prefix == null) {
+ prefix = "";
+ }
+ NamespaceContext context = out.getNamespaceContext();
+ if (context == null) {
+ return false;
+ }
+ String mappedUri = context.getPrefix(prefix);
+ return (mappedUri == null || !mappedUri.equals(uri));
+ }
+
+ static class QNameHelper {
+ public static String getQualifiedName(QName qname) {
+ String prefix = qname.getPrefix();
+ String localPart = qname.getLocalPart();
+ if (prefix != null && prefix.length() > 0) {
+ return prefix + ":" + localPart;
+ }
+ return localPart;
+ }
+
+ /**
+ * Turns the given String into a QName using the current namespace
context
+ */
+ public static QName asQName(NamespaceContext context, String text) {
+ int idx = text.indexOf(':');
+ if (idx >= 0) {
+ String prefix = text.substring(0, idx);
+ String localPart = text.substring(idx + 1);
+ String uri = context.getNamespaceURI(prefix);
+ return new QName(uri, localPart, prefix);
+ } else {
+ return new QName(text);
+ }
+ }
+ }
+
+}
Propchange:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/java/org/swssf/test/utils/XMLStreamHelper.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/java/org/swssf/test/utils/XmlReaderToWriter.java
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/java/org/swssf/test/utils/XmlReaderToWriter.java?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/java/org/swssf/test/utils/XmlReaderToWriter.java
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/java/org/swssf/test/utils/XmlReaderToWriter.java
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,118 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.swssf.test.utils;
+
+// Revised from xmlbeans
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+import javax.xml.stream.events.XMLEvent;
+
+public final class XmlReaderToWriter {
+ private XmlReaderToWriter() {
+ }
+
+ public static void writeAll(XMLStreamReader xmlr, XMLStreamWriter writer)
+ throws XMLStreamException {
+ while (xmlr.hasNext()) {
+ xmlr.next();
+ write(xmlr, writer);
+ }
+ //write(xmlr, writer); // write the last element
+ writer.flush();
+ }
+
+ public static void write(XMLStreamReader xmlr, XMLStreamWriter writer)
throws XMLStreamException {
+ switch (xmlr.getEventType()) {
+ case XMLEvent.START_ELEMENT:
+ final String localName = xmlr.getLocalName();
+ final String namespaceURI = xmlr.getNamespaceURI();
+ if (namespaceURI != null && namespaceURI.length() > 0) {
+ final String prefix = xmlr.getPrefix();
+ if (prefix != null)
+ writer.writeStartElement(prefix, localName,
namespaceURI);
+ else
+ writer.writeStartElement(namespaceURI, localName);
+ } else {
+ writer.writeStartElement(localName);
+ }
+
+ for (int i = 0, len = xmlr.getNamespaceCount(); i < len; i++) {
+ String prefix = xmlr.getNamespacePrefix(i);
+ if (prefix == null) {
+ writer.writeDefaultNamespace(xmlr.getNamespaceURI(i));
+ } else {
+ writer.writeNamespace(prefix, xmlr.getNamespaceURI(i));
+ }
+ }
+
+ for (int i = 0, len = xmlr.getAttributeCount(); i < len; i++) {
+ final String attUri = xmlr.getAttributeNamespace(i);
+
+ if (attUri != null && attUri.length() > 0) {
+ final String prefix = xmlr.getAttributePrefix(i);
+ if (prefix != null)
+ writer.writeAttribute(prefix, attUri,
xmlr.getAttributeLocalName(i), xmlr.getAttributeValue(i));
+ else
+ writer.writeAttribute(attUri,
xmlr.getAttributeLocalName(i), xmlr.getAttributeValue(i));
+ } else {
+ writer.writeAttribute(xmlr.getAttributeLocalName(i),
xmlr.getAttributeValue(i));
+ }
+
+ }
+ break;
+ case XMLEvent.END_ELEMENT:
+ writer.writeEndElement();
+ break;
+ case XMLEvent.SPACE:
+ case XMLEvent.CHARACTERS:
+ writer.writeCharacters(xmlr.getTextCharacters(),
xmlr.getTextStart(), xmlr.getTextLength());
+ break;
+ case XMLEvent.PROCESSING_INSTRUCTION:
+ writer.writeProcessingInstruction(xmlr.getPITarget(),
xmlr.getPIData());
+ break;
+ case XMLEvent.CDATA:
+ writer.writeCData(xmlr.getText());
+ break;
+
+ case XMLEvent.COMMENT:
+ writer.writeComment(xmlr.getText());
+ break;
+ case XMLEvent.ENTITY_REFERENCE:
+ writer.writeEntityRef(xmlr.getLocalName());
+ break;
+ case XMLEvent.START_DOCUMENT:
+ String encoding = xmlr.getCharacterEncodingScheme();
+ String version = xmlr.getVersion();
+
+ if (encoding != null && version != null)
+ writer.writeStartDocument(encoding, version);
+ else if (version != null)
+ writer.writeStartDocument(xmlr.getVersion());
+ break;
+ case XMLEvent.END_DOCUMENT:
+ writer.writeEndDocument();
+ break;
+ case XMLEvent.DTD:
+ writer.writeDTD(xmlr.getText());
+ break;
+ }
+ }
+}
Propchange:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/java/org/swssf/test/utils/XmlReaderToWriter.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/log4j.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/log4j.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/log4j.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/log4j.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration debug="false"
xmlns:log4j="http://jakarta.apache.org/log4j/">
+ <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
+ <param name="File" value="target/logging.log"/>
+ <param name="DatePattern" value="yyyy-MM-dd"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/>
+ </layout>
+ </appender>
+ <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/>
+ </layout>
+ </appender>
+ <logger name="org.swssf">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.swssf.impl.util">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.swssf.policy.PolicyEnforcer">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.swssf.impl.util.SignerOutputStream">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.swssf.impl.util.DigestOutputStream">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.apache.xml.security.utils.DigesterOutputStream">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.jcp.xml.dsig.internal">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.apache.xml.security.utils.SignerOutputStream">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.apache.xml.security.encryption.XMLCipher">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.apache.xml">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.swssf.impl.InputProcessorChainImpl">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.swssf.impl.OutputProcessorChainImpl">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.swssf.impl.processor.input">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.swssf.impl.saml.SAMLAssertionWrapper">
+ <level value="INFO"/>
+ </logger>
+ <logger name="org.swssf.test.AbstractTestBase$CustomWSS4JHandler">
+ <level value="INFO"/>
+ </logger>
+ <root>
+ <level value="INFO"/>
+ <appender-ref ref="FILE"/>
+ <appender-ref ref="STDOUT"/>
+ </root>
+</log4j:configuration>
Propchange:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/log4j.xml
------------------------------------------------------------------------------
svn:executable = *
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/receiver-crypto.properties
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/receiver-crypto.properties?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/receiver-crypto.properties
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/receiver-crypto.properties
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,5 @@
+org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
+org.apache.ws.security.crypto.merlin.file=receiver.jks
+org.apache.ws.security.crypto.merlin.alias.password=default
+org.apache.ws.security.crypto.merlin.keystore.password=default
+org.apache.ws.security.crypto.merlin.keystore.alias=receiver
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/receiver.jks
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/receiver.jks?rev=1172285&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/receiver.jks
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/issuer.jks
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/issuer.jks?rev=1172285&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/issuer.jks
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/saml-signed.properties
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/saml-signed.properties?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/saml-signed.properties
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/saml-signed.properties
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,6 @@
+org.apache.ws.security.saml.issuer.signAssertion = true
+org.apache.ws.security.saml.issuer.cryptoProp.file = saml/samlissuer.properties
+org.apache.ws.security.saml.issuer.key.name = samlissuer
+org.apache.ws.security.saml.issuer.key.password = default
+org.apache.ws.security.crypto.merlin.keystore.file = transmitter.jks
+org.apache.ws.security.crypto.merlin.keystore.password = default
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/saml-unsigned.properties
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/saml-unsigned.properties?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/saml-unsigned.properties
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/saml-unsigned.properties
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,4 @@
+org.apache.ws.security.saml.issuer.signAssertion = false
+org.apache.ws.security.saml.issuer.cryptoProp.file = saml/samlissuer.properties
+org.apache.ws.security.saml.issuer.key.name = samlissuer
+org.apache.ws.security.saml.issuer.key.password = default
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/samlissuer.properties
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/samlissuer.properties?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/samlissuer.properties
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/saml/samlissuer.properties
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,3 @@
+org.apache.ws.security.crypto.merlin.keystore.file = saml/issuer.jks
+org.apache.ws.security.crypto.merlin.keystore.password = default
+org.apache.ws.security.crypto.merlin.keystore.alias = samlissuer
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_c14n-comments.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_c14n-comments.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_c14n-comments.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_c14n-comments.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,6 @@
+<?xml-stylesheet href="doc.xsl"
+ type="text/xsl" ?>
+<doc>Hello, world!<!-- Comment 1 --></doc>
+<?pi-without-data?>
+<!-- Comment 2 -->
+<!-- Comment 3 -->
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_c14n.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_c14n.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_c14n.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_c14n.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,4 @@
+<?xml-stylesheet href="doc.xsl"
+ type="text/xsl" ?>
+<doc>Hello, world!</doc>
+<?pi-without-data?>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_input.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_input.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_input.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/31_input.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+
+<?xml-stylesheet href="doc.xsl"
+ type="text/xsl" ?>
+
+<!DOCTYPE doc SYSTEM "doc.dtd">
+
+<doc>Hello, world!<!-- Comment 1 --></doc>
+
+<?pi-without-data ?>
+
+<!-- Comment 2 -->
+
+<!-- Comment 3 -->
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/32_c14n.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/32_c14n.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/32_c14n.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/32_c14n.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,11 @@
+<doc>
+ <clean> </clean>
+ <dirty> A B </dirty>
+ <mixed>
+ A
+ <clean> </clean>
+ B
+ <dirty> A B </dirty>
+ C
+ </mixed>
+</doc>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/32_input.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/32_input.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/32_input.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/32_input.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,11 @@
+<doc>
+ <clean> </clean>
+ <dirty> A B </dirty>
+ <mixed>
+ A
+ <clean> </clean>
+ B
+ <dirty> A B </dirty>
+ C
+ </mixed>
+</doc>
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/33_c14n.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/33_c14n.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/33_c14n.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/33_c14n.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,14 @@
+<doc>
+ <e1></e1>
+ <e2></e2>
+ <e3 id="elem3" name="elem3"></e3>
+ <e4 id="elem4" name="elem4"></e4>
+ <e5 xmlns="http://example.org" xmlns:a="http://www.w3.org"
xmlns:b="http://www.ietf.org" attr="I'm" attr2="all" b:attr="sorted"
a:attr="out"></e5>
+ <e6 xmlns:a="http://www.w3.org">
+ <e7 xmlns="http://www.ietf.org">
+ <e8 xmlns="">
+ <e9 xmlns:a="http://www.ietf.org" attr="default"></e9>
+ </e8>
+ </e7>
+ </e6>
+</doc>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/33_input.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/33_input.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/33_input.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/33_input.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,19 @@
+<!DOCTYPE doc [<!ATTLIST e9 attr CDATA "default">]>
+<doc>
+ <e1 />
+ <e2 ></e2>
+ <e3 name = "elem3" id="elem3" />
+ <e4 name="elem4" id="elem4" ></e4>
+ <e5 a:attr="out" b:attr="sorted" attr2="all" attr="I'm"
+ xmlns:b="http://www.ietf.org"
+ xmlns:a="http://www.w3.org"
+ xmlns="http://example.org"/>
+ <e6 xmlns="" xmlns:a="http://www.w3.org">
+ <e7 xmlns="http://www.ietf.org">
+ <e8 xmlns="" xmlns:a="http://www.w3.org">
+ <e9 xmlns="" xmlns:a="http://www.ietf.org"/>
+ </e8>
+ </e7>
+ </e6>
+</doc>
+
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_c14n.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_c14n.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_c14n.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_c14n.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,10 @@
+<doc>
+ <text>First line
+Second line</text>
+ <value>2</value>
+ <compute>value>"0" && value<"10" ?"valid":"error"</compute>
+ <compute expr="value>"0" && value<"10"
?"valid":"error"">valid</compute>
+ <norm attr=" ' 
	 ' "></norm>
+ <normNames attr="A 
	 B"></normNames>
+ <normId id="' 
	 '"></normId>
+</doc>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_c14n_validatingParser.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_c14n_validatingParser.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_c14n_validatingParser.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_c14n_validatingParser.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,9 @@
+<doc>
+ <text>First line
+Second line</text>
+ <value>2</value>
+ <compute>value>"0" && value<"10" ?"valid":"error"</compute>
+ <compute expr="value>"0" && value<"10"
?"valid":"error"">valid</compute>
+ <norm attr=" ' 
	 ' "></norm>
+ <normNames attr="A 
	 B"></normNames>
+</doc>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_input.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_input.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_input.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_input.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,14 @@
+<!DOCTYPE doc [
+<!ATTLIST normId id ID #IMPLIED>
+<!ATTLIST normNames attr NMTOKENS #IMPLIED>
+]>
+<doc>
+ <text>First line
 Second line</text>
+ <value>2</value>
+ <compute><![CDATA[value>"0" && value<"10" ?"valid":"error"]]></compute>
+ <compute expr='value>"0" && value<"10"
?"valid":"error"'>valid</compute>
+ <norm attr=' '   
	 ' '/>
+ <normNames attr=' A   
	 B '/>
+ <normId id=' '   
	 ' '/>
+</doc>
+
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_input_validatingParser.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_input_validatingParser.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_input_validatingParser.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_input_validatingParser.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,13 @@
+<!DOCTYPE doc [
+<!ATTLIST normId id ID #IMPLIED>
+<!ATTLIST normNames attr NMTOKENS #IMPLIED>
+]>
+<doc>
+ <text>First line
 Second line</text>
+ <value>2</value>
+ <compute><![CDATA[value>"0" && value<"10" ?"valid":"error"]]></compute>
+ <compute expr='value>"0" && value<"10"
?"valid":"error"'>valid</compute>
+ <norm attr=' '   
	 ' '/>
+ <normNames attr=' A   
	 B '/>
+</doc>
+
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_validatingParser.txt
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_validatingParser.txt?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_validatingParser.txt
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/34_validatingParser.txt
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,5 @@
+http://www.w3.org/TR/2001/PR-xml-c14n-20010119
+
+states that:
+
+Note: The last element, normId, is well-formed but violates a validity
constraint for attributes of type ID. For testing canonical XML implementations
based on validating inputProcessors, remove the line containing this element
from the input and canonical form. In general, XML consumers should be
discouraged from using this feature of XML.
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/35_c14n.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/35_c14n.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/35_c14n.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/35_c14n.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,3 @@
+<doc attrExtEnt="entExt">
+ Hello, world!
+</doc>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/35_input.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/35_input.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/35_input.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/35_input.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,12 @@
+<!DOCTYPE doc [
+<!ATTLIST doc attrExtEnt ENTITY #IMPLIED>
+<!ENTITY ent1 "Hello">
+<!ENTITY ent2 SYSTEM "world.txt">
+<!ENTITY entExt SYSTEM "earth.gif" NDATA gif>
+<!NOTATION gif SYSTEM "viewgif.exe">
+]>
+<doc attrExtEnt="entExt">
+ &ent1;, &ent2;!
+</doc>
+
+<!-- Let world.txt contain "world" (excluding the quotes) -->
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/36_c14n.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/36_c14n.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/36_c14n.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/36_c14n.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1 @@
+<doc>©</doc>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/36_input.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/36_input.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/36_input.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/36_input.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<doc>©</doc>
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_c14n.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_c14n.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_c14n.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_c14n.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1 @@
+<e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org"><e3 xmlns=""
id="E3" xml:space="preserve"></e3></e1>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_input.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_input.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_input.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_input.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,11 @@
+<!DOCTYPE doc [
+<!ATTLIST e2 xml:space (default|preserve) 'preserve'>
+<!ATTLIST e3 id ID #IMPLIED>
+]>
+<doc xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org">
+ <e1>
+ <e2 xmlns="">
+ <e3 id="E3"/>
+ </e2>
+ </e1>
+</doc>
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_subset.xpath
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_subset.xpath?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_subset.xpath
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/37_subset.xpath
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,8 @@
+<!-- Evaluate with declaration xmlns:ietf="http://www.ietf.org" -->
+
+(//. | //@* | //namespace::*)
+[
+ self::ietf:e1 or (parent::ietf:e1 and not(self::text() or self::e2))
+ or
+ count(id("E3")|ancestor-or-self::node()) = count(ancestor-or-self::node())
+]
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/38_c14n.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/38_c14n.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/38_c14n.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/38_c14n.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,5 @@
+<e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org">
+ <e2 xmlns="" xml:base="../bar/" xml:space="preserve">
+ <e3 id="E3" xml:base="foo"></e3>
+ </e2>
+ </e1>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/38_input.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/38_input.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/38_input.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/38_input.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,11 @@
+<!DOCTYPE doc [
+<!ATTLIST e2 xml:space (default|preserve) 'preserve'>
+<!ATTLIST e3 id ID #IMPLIED>
+]>
+<doc xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:id="abc"
xml:base="http://www.example.com/something/else">
+ <e1>
+ <e2 xmlns="" xml:base="../bar/">
+ <e3 id="E3" xml:base="foo"/>
+ </e2>
+ </e1>
+</doc>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/doc.dtd
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/doc.dtd?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/doc.dtd
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/doc.dtd
Sun Sep 18 13:51:23 2011
@@ -0,0 +1 @@
+<!ELEMENT DOC (#PCDATA)>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/foo.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/foo.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/foo.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/foo.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,4 @@
+<?xml-stylesheet href="doc.xsl"
+ type="text/xsl" ?>
+<doc>Hello, world!</doc>
+<?pi-without-data?>
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/md5sum.txt
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/md5sum.txt?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/md5sum.txt
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/md5sum.txt
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,9 @@
+6970546b01f0c23cd72d3f129f2ec0f2 *31_c14n-comments.xml
+e57988b5e57b06858913472b56dc5af4 *31_c14n.xml
+58a1a346351e7b01a29f547fd17985f1 *32_c14n.xml
+a2d57aa4441bee658bb44cdc4f1a1f0e *33_c14n.xml
+99c99c9a4d8d03843d1326a62d2b106c *34_c14n.xml
+62b232d0bae09b6973266fa0bc14bffd *35_c14n.xml
+28485db5b2f33ab50cb63e14586f3b76 *36_c14n.xml
+9e9968d430274be0b054bf7d2b13512f *37_c14n.xml
+7d793037a0760186574b0282f2f435e7 *world.txt
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/relative-ns-behaviour.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/relative-ns-behaviour.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/relative-ns-behaviour.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/relative-ns-behaviour.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1 @@
+<absolute:correct
xmlns:absolute='http://www.absolute.org/#likeVodka'><relative:incorrect
xmlns:relative='../cheating#away'></relative:incorrect></absolute:correct>
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/testTranslationFromUTF16toUTF8.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/testTranslationFromUTF16toUTF8.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/testTranslationFromUTF16toUTF8.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/testTranslationFromUTF16toUTF8.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1 @@
+<UTF16>The german &auml (which is Unicode &#xE4;): "ä"</UTF16>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/world.txt
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/world.txt?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/world.txt
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/in/world.txt
Sun Sep 18 13:51:23 2011
@@ -0,0 +1 @@
+world
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_1.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_1.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_1.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_1.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,5 @@
+<n0:local xmlns:n0="foo:bar" xmlns:n3="ftp://example.org">
+<n1:elem2 xmlns:n1="http://example.net" xml:lang="en">
+<n3:stuff xmlns:n3="ftp://example.org"/>
+</n1:elem2>
+</n0:local>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_1_c14nized.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_1_c14nized.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_1_c14nized.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_1_c14nized.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,3 @@
+<n1:elem2 xmlns:n0="foo:bar" xmlns:n1="http://example.net"
xmlns:n3="ftp://example.org" xml:lang="en">
+<n3:stuff></n3:stuff>
+</n1:elem2>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_2.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_2.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_2.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_2.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,5 @@
+<n2:pdu xmlns:n1="http://example.com" xmlns:n2="http://foo.example"
xml:lang="fr" xml:space="retain">
+<n1:elem2 xmlns:n1="http://example.net" xml:lang="en">
+<n3:stuff xmlns:n3="ftp://example.org"/>
+</n1:elem2>
+</n2:pdu>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_2_c14nized.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_2_c14nized.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_2_c14nized.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_2_c14nized.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,3 @@
+<n1:elem2 xmlns:n1="http://example.net" xmlns:n2="http://foo.example"
xml:lang="en" xml:space="retain">
+<n3:stuff xmlns:n3="ftp://example.org"></n3:stuff>
+</n1:elem2>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_3.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_3.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_3.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_3.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<x:sample xmlns:x="http://www.x.com/sample/">
+ <?testpi 123?>
+ <section xml:lang="en">
+ <p style="indented" abc='xy"z'>
+ <x:verbatim xml:space="preserve">
+ <b xml:lang="fr">def
+ <i xml:space="reset">jkl</i>
+ </b>
+ </x:verbatim>
+ </p>
+ </section>
+</x:sample>
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_3_c14nized_exclusive.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_3_c14nized_exclusive.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_3_c14nized_exclusive.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_3_c14nized_exclusive.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,7 @@
+<p abc="xy"z" style="indented">
+ <x:verbatim xmlns:x="http://www.x.com/sample/" xml:space="preserve">
+ <b xml:lang="fr">def
+ <i xml:space="reset">jkl</i>
+ </b>
+ </x:verbatim>
+ </p>
\ No newline at end of file
Added:
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_c14nized_exclusive.xml
URL:
http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_c14nized_exclusive.xml?rev=1172285&view=auto
==============================================================================
---
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_c14nized_exclusive.xml
(added)
+++
webservices/wss4j/branches/swssf/streaming-ws-security/src/test/resources/testdata/c14n/inExcl/example2_2_c14nized_exclusive.xml
Sun Sep 18 13:51:23 2011
@@ -0,0 +1,3 @@
+<n1:elem2 xmlns:n1="http://example.net" xml:lang="en">
+<n3:stuff xmlns:n3="ftp://example.org"></n3:stuff>
+</n1:elem2>
\ No newline at end of file