You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by gi...@apache.org on 2011/09/18 15:51:36 UTC
svn commit: r1172285 [28/48] - in /webservices/wss4j/branches/swssf: ./
cxf-integration/ cxf-integration/src/ cxf-integration/src/main/
cxf-integration/src/main/java/ cxf-integration/src/main/java/org/
cxf-integration/src/main/java/org/swssf/ cxf-integ...
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2000/_09/xmldsig_/X509IssuerSerialType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2000/_09/xmldsig_/X509IssuerSerialType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2000/_09/xmldsig_/X509IssuerSerialType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2000/_09/xmldsig_/X509IssuerSerialType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,192 @@
+/**
+ * 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.w3._2000._09.xmldsig_;
+
+import org.swssf.ext.Constants;
+import org.swssf.ext.ParseException;
+import org.swssf.ext.Parseable;
+import org.swssf.ext.Utils;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.events.EndElement;
+import javax.xml.stream.events.StartElement;
+import javax.xml.stream.events.XMLEvent;
+import java.math.BigInteger;
+
+
+/**
+ * <p>Java class for X509IssuerSerialType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="X509IssuerSerialType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="X509IssuerName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="X509SerialNumber" type="{http://www.w3.org/2001/XMLSchema}integer"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "X509IssuerSerialType", propOrder = {
+ "x509IssuerName",
+ "x509SerialNumber"
+})
+public class X509IssuerSerialType implements Parseable {
+
+ private Parseable currentParseable;
+
+ @XmlElement(name = "X509IssuerName", required = true)
+ protected String x509IssuerName;
+ @XmlElement(name = "X509SerialNumber", required = true)
+ protected BigInteger x509SerialNumber;
+
+ public X509IssuerSerialType(StartElement startElement) {
+ }
+
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+
+ if (currentParseable != null) {
+ boolean finished = currentParseable.parseXMLEvent(xmlEvent);
+ if (finished) {
+ currentParseable.validate();
+ currentParseable = null;
+ }
+ return false;
+ }
+
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.START_ELEMENT:
+ StartElement startElement = xmlEvent.asStartElement();
+
+ if (startElement.getName().equals(Constants.TAG_dsig_X509IssuerName)) {
+ currentParseable = new Parseable() {
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.START_ELEMENT:
+ StartElement startElement = xmlEvent.asStartElement();
+ throw new ParseException("Unsupported Element: " + startElement.getName());
+ case XMLStreamConstants.END_ELEMENT:
+ return true;
+ case XMLStreamConstants.CHARACTERS:
+ x509IssuerName = xmlEvent.asCharacters().getData();
+ break;
+ }
+ return false;
+ }
+
+ public void validate() throws ParseException {
+ }
+ };
+ } else if (startElement.getName().equals(Constants.TAG_dsig_X509SerialNumber)) {
+ currentParseable = new Parseable() {
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.START_ELEMENT:
+ StartElement startElement = xmlEvent.asStartElement();
+ throw new ParseException("Unsupported Element: " + startElement.getName());
+ case XMLStreamConstants.END_ELEMENT:
+ return true;
+ case XMLStreamConstants.CHARACTERS:
+ x509SerialNumber = new BigInteger(xmlEvent.asCharacters().getData());
+ break;
+ }
+ return false;
+ }
+
+ public void validate() throws ParseException {
+ }
+ };
+ } else {
+ throw new ParseException("Unsupported Element: " + startElement.getName());
+ }
+ break;
+ case XMLStreamConstants.END_ELEMENT:
+ currentParseable = null;
+ EndElement endElement = xmlEvent.asEndElement();
+ if (endElement.getName().equals(Constants.TAG_dsig_X509IssuerSerial)) {
+ return true;
+ }
+ break;
+ //possible ignorable withespace and comments
+ case XMLStreamConstants.CHARACTERS:
+ case XMLStreamConstants.COMMENT:
+ break;
+ default:
+ throw new ParseException("Unexpected event received " + Utils.getXMLEventAsString(xmlEvent));
+ }
+ return false;
+ }
+
+ public void validate() throws ParseException {
+ if (x509IssuerName == null || x509SerialNumber == null) {
+ throw new ParseException("Element \"X509IssuerName\"| \"X509SerialNumber\" is missing");
+ }
+ }
+
+ /**
+ * Gets the value of the x509IssuerName property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getX509IssuerName() {
+ return x509IssuerName;
+ }
+
+ /**
+ * Sets the value of the x509IssuerName property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setX509IssuerName(String value) {
+ this.x509IssuerName = value;
+ }
+
+ /**
+ * Gets the value of the x509SerialNumber property.
+ *
+ * @return possible object is
+ * {@link BigInteger }
+ */
+ public BigInteger getX509SerialNumber() {
+ return x509SerialNumber;
+ }
+
+ /**
+ * Sets the value of the x509SerialNumber property.
+ *
+ * @param value allowed object is
+ * {@link BigInteger }
+ */
+ public void setX509SerialNumber(BigInteger value) {
+ this.x509SerialNumber = value;
+ }
+
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2000/_09/xmldsig_/X509IssuerSerialType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/AgreementMethodType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/AgreementMethodType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/AgreementMethodType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/AgreementMethodType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,119 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import org.w3._2000._09.xmldsig_.KeyInfoType;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.*;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for AgreementMethodType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="AgreementMethodType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="KA-Nonce" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
+ * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="OriginatorKeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/>
+ * <element name="RecipientKeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AgreementMethodType", propOrder = {
+ "content"
+})
+public class AgreementMethodType {
+
+ @XmlElementRefs({
+ @XmlElementRef(name = "OriginatorKeyInfo", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class),
+ @XmlElementRef(name = "RecipientKeyInfo", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class),
+ @XmlElementRef(name = "KA-Nonce", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class)
+ })
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+ @XmlAttribute(name = "Algorithm", required = true)
+ @XmlSchemaType(name = "anyURI")
+ protected String algorithm;
+
+ /**
+ * Gets the value of the content property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the content property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ * {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}
+ * {@link Object }
+ * {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}
+ * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ /**
+ * Gets the value of the algorithm property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getAlgorithm() {
+ return algorithm;
+ }
+
+ /**
+ * Sets the value of the algorithm property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setAlgorithm(String value) {
+ this.algorithm = value;
+ }
+
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/AgreementMethodType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/CipherDataType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/CipherDataType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/CipherDataType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/CipherDataType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,191 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import org.swssf.ext.Constants;
+import org.swssf.ext.ParseException;
+import org.swssf.ext.Parseable;
+import org.swssf.ext.Utils;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.events.EndElement;
+import javax.xml.stream.events.StartElement;
+import javax.xml.stream.events.XMLEvent;
+import java.util.Arrays;
+
+
+/**
+ * <p>Java class for CipherDataType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="CipherDataType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice>
+ * <element name="CipherValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ * <element ref="{http://www.w3.org/2001/04/xmlenc#}CipherReference"/>
+ * </choice>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "CipherDataType", propOrder = {
+ "cipherValue",
+ "cipherReference"
+})
+public class CipherDataType implements Parseable {
+
+ private Parseable currentParseable;
+
+ @XmlElement(name = "CipherValue")
+ protected StringBuffer cipherValue = new StringBuffer();
+ @XmlElement(name = "CipherReference")
+ protected CipherReferenceType cipherReference;
+
+ public CipherDataType(StartElement startElement) {
+ }
+
+
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+ if (currentParseable != null) {
+ boolean finished = currentParseable.parseXMLEvent(xmlEvent);
+ if (finished) {
+ currentParseable.validate();
+ currentParseable = null;
+ }
+ return false;
+ }
+
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.START_ELEMENT:
+ StartElement startElement = xmlEvent.asStartElement();
+
+ if (startElement.getName().equals(Constants.TAG_xenc_CipherValue)) {
+ currentParseable = new Parseable() {
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.START_ELEMENT:
+ StartElement startElement = xmlEvent.asStartElement();
+ if (!startElement.getName().equals(Constants.TAG_xenc_CipherValue)) {
+ throw new ParseException("Unsupported Element " + startElement.getName());
+ }
+ break;
+ case XMLStreamConstants.END_ELEMENT:
+ EndElement endElement = xmlEvent.asEndElement();
+ if (endElement.getName().equals(Constants.TAG_xenc_CipherValue)) {
+ return true;
+ }
+ break;
+ case XMLStreamConstants.CHARACTERS:
+ cipherValue.append(xmlEvent.asCharacters().getData());
+ break;
+ default:
+ throw new ParseException("Unexpected event received " + Utils.getXMLEventAsString(xmlEvent));
+ }
+ return false;
+ }
+
+ public void validate() throws ParseException {
+ /*
+ if (cipherValue == null) {
+ throw new ParseException("CipherValue is missing");
+ }
+ */
+ }
+ };
+ } else {
+ throw new ParseException("Unsupported Element: " + startElement.getName());
+ }
+
+ break;
+ case XMLStreamConstants.END_ELEMENT:
+ currentParseable = null;
+ EndElement endElement = xmlEvent.asEndElement();
+ if (endElement.getName().equals(Constants.TAG_xenc_CipherData)) {
+ return true;
+ }
+ break;
+ //possible ignorable withespace and comments
+ case XMLStreamConstants.CHARACTERS:
+ case XMLStreamConstants.COMMENT:
+ break;
+ default:
+ throw new ParseException("Unexpected event received " + Utils.getXMLEventAsString(xmlEvent));
+ }
+ return false;
+ }
+
+ public void validate() throws ParseException {
+ //cipherValue can/must be null for decryptionProcessor
+ /*
+ if (cipherValue == null) {
+ throw new ParseException("CipherValue is missing");
+ }
+ */
+ }
+
+ /**
+ * Gets the value of the cipherValue property.
+ *
+ * @return possible object is
+ * byte[]
+ */
+ public byte[] getCipherValue() {
+ return cipherValue.toString().getBytes();
+ }
+
+ /**
+ * Sets the value of the cipherValue property.
+ *
+ * @param value allowed object is
+ * byte[]
+ */
+ public void setCipherValue(byte[] value) {
+ this.cipherValue.append(Arrays.toString(value));
+ }
+
+ /**
+ * Gets the value of the cipherReference property.
+ *
+ * @return possible object is
+ * {@link CipherReferenceType }
+ */
+ public CipherReferenceType getCipherReference() {
+ return cipherReference;
+ }
+
+ /**
+ * Sets the value of the cipherReference property.
+ *
+ * @param value allowed object is
+ * {@link CipherReferenceType }
+ */
+ public void setCipherReference(CipherReferenceType value) {
+ this.cipherReference = value;
+ }
+
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/CipherDataType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/CipherReferenceType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/CipherReferenceType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/CipherReferenceType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/CipherReferenceType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,94 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import javax.xml.bind.annotation.*;
+
+
+/**
+ * <p>Java class for CipherReferenceType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="CipherReferenceType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice>
+ * <element name="Transforms" type="{http://www.w3.org/2001/04/xmlenc#}TransformsType" minOccurs="0"/>
+ * </choice>
+ * <attribute name="URI" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "CipherReferenceType", propOrder = {
+ "transforms"
+})
+public class CipherReferenceType {
+
+ @XmlElement(name = "Transforms")
+ protected TransformsType transforms;
+ @XmlAttribute(name = "URI", required = true)
+ @XmlSchemaType(name = "anyURI")
+ protected String uri;
+
+ /**
+ * Gets the value of the transforms property.
+ *
+ * @return possible object is
+ * {@link TransformsType }
+ */
+ public TransformsType getTransforms() {
+ return transforms;
+ }
+
+ /**
+ * Sets the value of the transforms property.
+ *
+ * @param value allowed object is
+ * {@link TransformsType }
+ */
+ public void setTransforms(TransformsType value) {
+ this.transforms = value;
+ }
+
+ /**
+ * Gets the value of the uri property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getURI() {
+ return uri;
+ }
+
+ /**
+ * Sets the value of the uri property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setURI(String value) {
+ this.uri = value;
+ }
+
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/CipherReferenceType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedDataType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedDataType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedDataType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedDataType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,48 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.stream.events.StartElement;
+
+
+/**
+ * <p>Java class for EncryptedDataType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="EncryptedDataType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2001/04/xmlenc#}EncryptedType">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "EncryptedDataType")
+public class EncryptedDataType
+ extends EncryptedType {
+ public EncryptedDataType(StartElement startElement) {
+ super(startElement);
+ }
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedDataType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedKeyType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedKeyType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedKeyType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedKeyType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,179 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import org.swssf.ext.Constants;
+import org.swssf.ext.ParseException;
+import org.swssf.ext.Parseable;
+import org.swssf.ext.Utils;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.events.EndElement;
+import javax.xml.stream.events.StartElement;
+import javax.xml.stream.events.XMLEvent;
+
+
+/**
+ * <p>Java class for EncryptedKeyType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="EncryptedKeyType">
+ * <complexContent>
+ * <extension base="{http://www.w3.org/2001/04/xmlenc#}EncryptedType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2001/04/xmlenc#}ReferenceList" minOccurs="0"/>
+ * <element name="CarriedKeyName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="Recipient" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "EncryptedKeyType", propOrder = {
+ "referenceList",
+ "carriedKeyName"
+})
+public class EncryptedKeyType
+ extends EncryptedType implements Parseable {
+
+ private Parseable currentParseable;
+
+ @XmlElement(name = "ReferenceList")
+ protected ReferenceList referenceList;
+ @XmlElement(name = "CarriedKeyName")
+ protected String carriedKeyName;
+ @XmlAttribute(name = "Recipient")
+ protected String recipient;
+
+ private boolean isChildFinished = false;
+
+ public EncryptedKeyType(StartElement startElement) {
+ super(startElement);
+ }
+
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+
+ if (currentParseable != null) {
+ boolean finished = currentParseable.parseXMLEvent(xmlEvent);
+ if (finished) {
+ currentParseable.validate();
+ currentParseable = null;
+ }
+ return false;
+ }
+
+ if (!isChildFinished) {
+ isChildFinished = super.parseXMLEvent(xmlEvent);
+ }
+
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.START_ELEMENT:
+ StartElement startElement = xmlEvent.asStartElement();
+
+ if (startElement.getName().equals(Constants.TAG_xenc_ReferenceList)) {
+ currentParseable = this.referenceList = new ReferenceList(startElement);
+ }
+ break;
+ case XMLStreamConstants.END_ELEMENT:
+ currentParseable = null;
+ EndElement endElement = xmlEvent.asEndElement();
+ if (endElement.getName().equals(Constants.TAG_xenc_EncryptedKey)) {
+ return true;
+ }
+ break;
+ //possible ignorable withespace and comments
+ case XMLStreamConstants.CHARACTERS:
+ case XMLStreamConstants.COMMENT:
+ break;
+ default:
+ throw new ParseException("Unexpected event received " + Utils.getXMLEventAsString(xmlEvent));
+ }
+ return false;
+ }
+
+ public void validate() throws ParseException {
+ //ReferenceList is optional (can be outside of EncryptedKey -> child element of wsse:Security
+ }
+
+ /**
+ * Gets the value of the referenceList property.
+ *
+ * @return possible object is
+ * {@link ReferenceList }
+ */
+ public ReferenceList getReferenceList() {
+ return referenceList;
+ }
+
+ /**
+ * Sets the value of the referenceList property.
+ *
+ * @param value allowed object is
+ * {@link ReferenceList }
+ */
+ public void setReferenceList(ReferenceList value) {
+ this.referenceList = value;
+ }
+
+ /**
+ * Gets the value of the carriedKeyName property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getCarriedKeyName() {
+ return carriedKeyName;
+ }
+
+ /**
+ * Sets the value of the carriedKeyName property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setCarriedKeyName(String value) {
+ this.carriedKeyName = value;
+ }
+
+ /**
+ * Gets the value of the recipient property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getRecipient() {
+ return recipient;
+ }
+
+ /**
+ * Sets the value of the recipient property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setRecipient(String value) {
+ this.recipient = value;
+ }
+
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedKeyType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,346 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import org.swssf.ext.Constants;
+import org.swssf.ext.ParseException;
+import org.swssf.ext.Parseable;
+import org.swssf.ext.Utils;
+import org.w3._2000._09.xmldsig_.KeyInfoType;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.events.Attribute;
+import javax.xml.stream.events.EndElement;
+import javax.xml.stream.events.StartElement;
+import javax.xml.stream.events.XMLEvent;
+import java.util.Iterator;
+
+
+/**
+ * <p>Java class for EncryptedType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="EncryptedType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="EncryptionMethod" type="{http://www.w3.org/2001/04/xmlenc#}EncryptionMethodType" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
+ * <element ref="{http://www.w3.org/2001/04/xmlenc#}CipherData"/>
+ * <element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptionProperties" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "EncryptedType", propOrder = {
+ "encryptionMethod",
+ "keyInfo",
+ "cipherData",
+ "encryptionProperties"
+})
+@XmlSeeAlso({
+ EncryptedKeyType.class,
+ EncryptedDataType.class
+})
+public abstract class EncryptedType implements Parseable {
+
+ private Parseable currentParseable;
+
+ @XmlElement(name = "EncryptionMethod")
+ protected EncryptionMethodType encryptionMethod;
+ @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#")
+ protected KeyInfoType keyInfo;
+ @XmlElement(name = "CipherData", required = true)
+ protected CipherDataType cipherData;
+ @XmlElement(name = "EncryptionProperties")
+ protected EncryptionPropertiesType encryptionProperties;
+ @XmlAttribute(name = "Id")
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+ @XmlAttribute(name = "Type")
+ @XmlSchemaType(name = "anyURI")
+ protected String type;
+ @XmlAttribute(name = "MimeType")
+ protected String mimeType;
+ @XmlAttribute(name = "Encoding")
+ @XmlSchemaType(name = "anyURI")
+ protected String encoding;
+
+ private QName startElementName;
+
+ protected EncryptedType(StartElement startElement) {
+ this.startElementName = startElement.getName();
+
+ @SuppressWarnings("unchecked")
+ Iterator<Attribute> attributeIterator = startElement.getAttributes();
+ while (attributeIterator.hasNext()) {
+ Attribute attribute = attributeIterator.next();
+ if (attribute.getName().equals(Constants.ATT_NULL_Id)) {
+ CollapsedStringAdapter collapsedStringAdapter = new CollapsedStringAdapter();
+ this.id = collapsedStringAdapter.unmarshal(attribute.getValue());
+ } else if (attribute.getName().equals(Constants.ATT_NULL_Type)) {
+ this.type = attribute.getValue();
+ } else if (attribute.getName().equals(Constants.ATT_NULL_MimeType)) {
+ this.mimeType = attribute.getValue();
+ } else if (attribute.getName().equals(Constants.ATT_NULL_Encoding)) {
+ this.encoding = attribute.getValue();
+ }
+ }
+ }
+
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+ if (currentParseable != null) {
+ boolean finished = currentParseable.parseXMLEvent(xmlEvent);
+ if (finished) {
+ currentParseable.validate();
+ currentParseable = null;
+ }
+ return false;
+ }
+
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.START_ELEMENT:
+ StartElement startElement = xmlEvent.asStartElement();
+
+ if (startElement.getName().equals(Constants.TAG_xenc_EncryptionMethod)) {
+ currentParseable = this.encryptionMethod = new EncryptionMethodType(startElement);
+ } else if (startElement.getName().equals(Constants.TAG_dsig_KeyInfo)) {
+ currentParseable = this.keyInfo = new KeyInfoType(startElement);
+ } else if (startElement.getName().equals(Constants.TAG_xenc_CipherData)) {
+ currentParseable = this.cipherData = new CipherDataType(startElement);
+ } else if (startElement.getName().equals(Constants.TAG_xenc_EncryptionProperties)) {
+ //currentParseable = this.encryptionProperties = new EncryptionPropertiesType();
+ currentParseable = new Parseable() {
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.END_ELEMENT:
+ EndElement endElement = xmlEvent.asEndElement();
+ if (endElement.getName().equals(Constants.TAG_xenc_EncryptionProperties)) {
+ return true;
+ }
+ break;
+ }
+ return false;
+ }
+
+ public void validate() throws ParseException {
+ }
+ };
+ }
+ break;
+ case XMLStreamConstants.END_ELEMENT:
+
+ currentParseable = null;
+ EndElement endElement = xmlEvent.asEndElement();
+
+ if (endElement.getName().equals(startElementName)) {
+ return true;
+ }
+ break;
+ //possible ignorable withespace and comments
+ case XMLStreamConstants.CHARACTERS:
+ case XMLStreamConstants.COMMENT:
+ break;
+ default:
+ throw new ParseException("Unexpected event received " + Utils.getXMLEventAsString(xmlEvent));
+ }
+ return false;
+ }
+
+ public void validate() throws ParseException {
+ if (cipherData == null) {
+ throw new ParseException("Element \"CipherData\" is missing");
+ }
+ }
+
+ /**
+ * Gets the value of the encryptionMethod property.
+ *
+ * @return possible object is
+ * {@link EncryptionMethodType }
+ */
+ public EncryptionMethodType getEncryptionMethod() {
+ return encryptionMethod;
+ }
+
+ /**
+ * Sets the value of the encryptionMethod property.
+ *
+ * @param value allowed object is
+ * {@link EncryptionMethodType }
+ */
+ public void setEncryptionMethod(EncryptionMethodType value) {
+ this.encryptionMethod = value;
+ }
+
+ /**
+ * Gets the value of the keyInfo property.
+ *
+ * @return possible object is
+ * {@link KeyInfoType }
+ */
+ public KeyInfoType getKeyInfo() {
+ return keyInfo;
+ }
+
+ /**
+ * Sets the value of the keyInfo property.
+ *
+ * @param value allowed object is
+ * {@link KeyInfoType }
+ */
+ public void setKeyInfo(KeyInfoType value) {
+ this.keyInfo = value;
+ }
+
+ /**
+ * Gets the value of the cipherData property.
+ *
+ * @return possible object is
+ * {@link CipherDataType }
+ */
+ public CipherDataType getCipherData() {
+ return cipherData;
+ }
+
+ /**
+ * Sets the value of the cipherData property.
+ *
+ * @param value allowed object is
+ * {@link CipherDataType }
+ */
+ public void setCipherData(CipherDataType value) {
+ this.cipherData = value;
+ }
+
+ /**
+ * Gets the value of the encryptionProperties property.
+ *
+ * @return possible object is
+ * {@link EncryptionPropertiesType }
+ */
+ public EncryptionPropertiesType getEncryptionProperties() {
+ return encryptionProperties;
+ }
+
+ /**
+ * Sets the value of the encryptionProperties property.
+ *
+ * @param value allowed object is
+ * {@link EncryptionPropertiesType }
+ */
+ public void setEncryptionProperties(EncryptionPropertiesType value) {
+ this.encryptionProperties = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+ /**
+ * Gets the value of the type property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setType(String value) {
+ this.type = value;
+ }
+
+ /**
+ * Gets the value of the mimeType property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getMimeType() {
+ return mimeType;
+ }
+
+ /**
+ * Sets the value of the mimeType property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setMimeType(String value) {
+ this.mimeType = value;
+ }
+
+ /**
+ * Gets the value of the encoding property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getEncoding() {
+ return encoding;
+ }
+
+ /**
+ * Sets the value of the encoding property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setEncoding(String value) {
+ this.encoding = value;
+ }
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptedType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionMethodType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionMethodType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionMethodType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionMethodType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,171 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import org.swssf.ext.Constants;
+import org.swssf.ext.ParseException;
+import org.swssf.ext.Parseable;
+import org.swssf.ext.Utils;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.*;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.events.Attribute;
+import javax.xml.stream.events.EndElement;
+import javax.xml.stream.events.StartElement;
+import javax.xml.stream.events.XMLEvent;
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+
+/**
+ * <p>Java class for EncryptionMethodType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="EncryptionMethodType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="KeySize" type="{http://www.w3.org/2001/04/xmlenc#}KeySizeType" minOccurs="0"/>
+ * <element name="OAEPparams" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
+ * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "EncryptionMethodType", propOrder = {
+ "content"
+})
+public class EncryptionMethodType implements Parseable {
+
+ private Parseable currentParseable;
+
+ @XmlElementRefs({
+ @XmlElementRef(name = "KeySize", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class),
+ @XmlElementRef(name = "OAEPparams", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class)
+ })
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+ @XmlAttribute(name = "Algorithm", required = true)
+ @XmlSchemaType(name = "anyURI")
+ protected String algorithm;
+
+ public EncryptionMethodType(StartElement startElement) {
+ @SuppressWarnings("unchecked")
+ Iterator<Attribute> attributeIterator = startElement.getAttributes();
+ while (attributeIterator.hasNext()) {
+ Attribute attribute = attributeIterator.next();
+ if (attribute.getName().equals(Constants.ATT_NULL_Algorithm)) {
+ this.algorithm = attribute.getValue();
+ }
+ }
+ }
+
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+ if (currentParseable != null) {
+ boolean finished = currentParseable.parseXMLEvent(xmlEvent);
+ if (finished) {
+ currentParseable = null;
+ }
+ return false;
+ }
+
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.START_ELEMENT:
+ StartElement startElement = xmlEvent.asStartElement();
+ throw new ParseException("Unsupported Element: " + startElement.getName());
+ case XMLStreamConstants.END_ELEMENT:
+ currentParseable = null;
+ EndElement endElement = xmlEvent.asEndElement();
+ if (endElement.getName().equals(Constants.TAG_xenc_EncryptionMethod)) {
+ return true;
+ }
+ break;
+ default:
+ throw new ParseException("Unexpected event received " + Utils.getXMLEventAsString(xmlEvent));
+ }
+ return false;
+ }
+
+ public void validate() throws ParseException {
+ if (algorithm == null) {
+ throw new ParseException("Attribute \"Algorithm\" is missing");
+ }
+ }
+
+ /**
+ * Gets the value of the content property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the content property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JAXBElement }{@code <}{@link BigInteger }{@code >}
+ * {@link String }
+ * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
+ * {@link Object }
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ /**
+ * Gets the value of the algorithm property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getAlgorithm() {
+ return algorithm;
+ }
+
+ /**
+ * Sets the value of the algorithm property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setAlgorithm(String value) {
+ this.algorithm = value;
+ }
+
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionMethodType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionPropertiesType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionPropertiesType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionPropertiesType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionPropertiesType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,107 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for EncryptionPropertiesType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="EncryptionPropertiesType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptionProperty" maxOccurs="unbounded"/>
+ * </sequence>
+ * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "EncryptionPropertiesType", propOrder = {
+ "encryptionProperty"
+})
+public class EncryptionPropertiesType {
+
+ @XmlElement(name = "EncryptionProperty", required = true)
+ protected List<EncryptionPropertyType> encryptionProperty;
+ @XmlAttribute(name = "Id")
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+
+ /**
+ * Gets the value of the encryptionProperty property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the encryptionProperty property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getEncryptionProperty().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EncryptionPropertyType }
+ */
+ public List<EncryptionPropertyType> getEncryptionProperty() {
+ if (encryptionProperty == null) {
+ encryptionProperty = new ArrayList<EncryptionPropertyType>();
+ }
+ return this.encryptionProperty;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionPropertiesType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionPropertyType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionPropertyType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionPropertyType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionPropertyType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,158 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for EncryptionPropertyType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="EncryptionPropertyType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded">
+ * <any processContents='lax' namespace='##other'/>
+ * </choice>
+ * <attribute name="Target" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * <anyAttribute namespace='http://www.w3.org/XML/1998/namespace'/>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "EncryptionPropertyType", propOrder = {
+ "content"
+})
+public class EncryptionPropertyType {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+ @XmlAttribute(name = "Target")
+ @XmlSchemaType(name = "anyURI")
+ protected String target;
+ @XmlAttribute(name = "Id")
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected String id;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName, String>();
+
+ /**
+ * Gets the value of the content property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the content property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ * {@link String }
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ /**
+ * Gets the value of the target property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getTarget() {
+ return target;
+ }
+
+ /**
+ * Sets the value of the target property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setTarget(String value) {
+ this.target = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on this class.
+ * <p/>
+ * <p/>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ * <p/>
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ * @return always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/EncryptionPropertyType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/ReferenceList.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/ReferenceList.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/ReferenceList.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/ReferenceList.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,143 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import org.swssf.ext.Constants;
+import org.swssf.ext.ParseException;
+import org.swssf.ext.Parseable;
+import org.swssf.ext.Utils;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.*;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.events.EndElement;
+import javax.xml.stream.events.StartElement;
+import javax.xml.stream.events.XMLEvent;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded">
+ * <element name="DataReference" type="{http://www.w3.org/2001/04/xmlenc#}ReferenceType"/>
+ * <element name="KeyReference" type="{http://www.w3.org/2001/04/xmlenc#}ReferenceType"/>
+ * </choice>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "dataReferenceOrKeyReference"
+})
+@XmlRootElement(name = "ReferenceList")
+public class ReferenceList implements Parseable {
+
+ private Parseable currentParseable;
+
+ @XmlElementRefs({
+ @XmlElementRef(name = "DataReference", namespace = "http://www.w3.org/2001/04/xmlenc#", type = ReferenceType.class),
+ @XmlElementRef(name = "KeyReference", namespace = "http://www.w3.org/2001/04/xmlenc#", type = ReferenceType.class)
+ })
+ protected List<ReferenceType> dataReferenceOrKeyReference;
+
+ public ReferenceList(StartElement startElement) {
+ }
+
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+
+ if (currentParseable != null) {
+ boolean finished = currentParseable.parseXMLEvent(xmlEvent);
+ if (finished) {
+ currentParseable.validate();
+ currentParseable = null;
+ }
+ return false;
+ }
+
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.START_ELEMENT:
+ StartElement startElement = xmlEvent.asStartElement();
+
+ if (startElement.getName().equals(Constants.TAG_xenc_DataReference)) {
+ ReferenceType referenceType = new ReferenceType(startElement);
+ currentParseable = referenceType;
+ getDataReferenceOrKeyReference().add(referenceType);
+ } else {
+ throw new ParseException("Unsupported Element: " + startElement.getName());
+ }
+
+ break;
+ case XMLStreamConstants.END_ELEMENT:
+ currentParseable = null;
+ EndElement endElement = xmlEvent.asEndElement();
+ if (endElement.getName().equals(Constants.TAG_xenc_ReferenceList)) {
+ return true;
+ }
+ break;
+ default:
+ throw new ParseException("Unexpected event received " + Utils.getXMLEventAsString(xmlEvent));
+ }
+ return false;
+ }
+
+ public void validate() throws ParseException {
+ if (getDataReferenceOrKeyReference().size() == 0) {
+ throw new ParseException("No \"DataReference\"");
+ }
+ }
+
+ /**
+ * Gets the value of the dataReferenceOrKeyReference property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the dataReferenceOrKeyReference property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDataReferenceOrKeyReference().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JAXBElement }{@code <}{@link ReferenceType }{@code >}
+ * {@link JAXBElement }{@code <}{@link ReferenceType }{@code >}
+ */
+ public List<ReferenceType> getDataReferenceOrKeyReference() {
+ if (dataReferenceOrKeyReference == null) {
+ dataReferenceOrKeyReference = new ArrayList<ReferenceType>();
+ }
+ return this.dataReferenceOrKeyReference;
+ }
+
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/ReferenceList.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/ReferenceType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/ReferenceType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/ReferenceType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/ReferenceType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,159 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import org.swssf.ext.Constants;
+import org.swssf.ext.ParseException;
+import org.swssf.ext.Parseable;
+import org.swssf.ext.Utils;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.events.Attribute;
+import javax.xml.stream.events.EndElement;
+import javax.xml.stream.events.StartElement;
+import javax.xml.stream.events.XMLEvent;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+
+/**
+ * <p>Java class for ReferenceType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="ReferenceType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="URI" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ReferenceType", propOrder = {
+ "any"
+})
+public class ReferenceType implements Parseable {
+
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAttribute(name = "URI", required = true)
+ @XmlSchemaType(name = "anyURI")
+ protected String uri;
+
+ private boolean processed = false;
+
+ private QName startElementName;
+
+ public ReferenceType(StartElement startElement) {
+ this.startElementName = startElement.getName();
+ @SuppressWarnings("unchecked")
+ Iterator<Attribute> attributeIterator = startElement.getAttributes();
+ while (attributeIterator.hasNext()) {
+ Attribute attribute = attributeIterator.next();
+ if (attribute.getName().equals(Constants.ATT_NULL_URI)) {
+ this.uri = Utils.dropReferenceMarker(attribute.getValue());
+ }
+ }
+ }
+
+ public boolean parseXMLEvent(XMLEvent xmlEvent) throws ParseException {
+
+ switch (xmlEvent.getEventType()) {
+ case XMLStreamConstants.END_ELEMENT:
+ EndElement endElement = xmlEvent.asEndElement();
+ if (endElement.getName().equals(startElementName)) {
+ return true;
+ }
+ case XMLStreamConstants.START_ELEMENT:
+ throw new ParseException("Unsupported Element: " + xmlEvent.asStartElement().getName());
+ default:
+ throw new ParseException("Unexpected event received " + Utils.getXMLEventAsString(xmlEvent));
+ }
+ }
+
+ public void validate() throws ParseException {
+ if (uri == null) {
+ throw new ParseException("Attribute \"URI\" is missing");
+ }
+ }
+
+ /**
+ * Gets the value of the any property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the uri property.
+ *
+ * @return possible object is
+ * {@link String }
+ */
+ public String getURI() {
+ return uri;
+ }
+
+ /**
+ * Sets the value of the uri property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setURI(String value) {
+ this.uri = value;
+ }
+
+ public boolean isProcessed() {
+ return processed;
+ }
+
+ public void setProcessed(boolean processed) {
+ this.processed = processed;
+ }
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/ReferenceType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/TransformsType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/TransformsType.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/TransformsType.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/TransformsType.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,84 @@
+/**
+ * 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.w3._2001._04.xmlenc_;
+
+import org.w3._2000._09.xmldsig_.TransformType;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for TransformsType complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="TransformsType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://www.w3.org/2000/09/xmldsig#}Transform" maxOccurs="unbounded"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "TransformsType", propOrder = {
+ "transform"
+})
+public class TransformsType {
+
+ @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
+ protected List<TransformType> transform;
+
+ /**
+ * Gets the value of the transform property.
+ * <p/>
+ * <p/>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the transform property.
+ * <p/>
+ * <p/>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getTransform().add(newItem);
+ * </pre>
+ * <p/>
+ * <p/>
+ * <p/>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TransformType }
+ */
+ public List<TransformType> getTransform() {
+ if (transform == null) {
+ transform = new ArrayList<TransformType>();
+ }
+ return this.transform;
+ }
+
+}
Propchange: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/w3/_2001/_04/xmlenc_/TransformsType.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/resources/cache.ccf
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/resources/cache.ccf?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/resources/cache.ccf (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/resources/cache.ccf Sun Sep 18 13:51:23 2011
@@ -0,0 +1,19 @@
+# DEFAULT CACHE REGION
+jcs.default=DC
+jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
+jcs.default.cacheattributes.MaxObjects=1000
+jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
+jcs.default.cacheattributes.UseMemoryShrinker=true
+jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
+jcs.default.cacheattributes.ShrinkerIntervalSeconds=300
+jcs.default.cacheattributes.MaxSpoolPerRun=500
+jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
+jcs.default.elementattributes.IsEternal=false
+jcs.default.elementattributes.MaxLifeSeconds=86400
+jcs.default.elementattributes.IdleTime=600
+
+# AVAILABLE AUXILIARY CACHES
+jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
+jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
+jcs.auxiliary.DC.attributes.DiskPath=${java.io.tmpdir}
+jcs.auxiliary.DC.attributes.maxKeySize=100000