Added: webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/ObjectFactory.java URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/ObjectFactory.java?rev=1582739&view=auto ============================================================================== --- webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/ObjectFactory.java (added) +++ webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/ObjectFactory.java Fri Mar 28 13:01:29 2014 @@ -0,0 +1,114 @@ +/** + * 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. + */ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 +// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2014.03.27 at 03:31:18 PM GMT +// + + +package org.apache.wss4j.binding.wsu10; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.apache.wss4j.binding.wsu10 package. + * <p>An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Expires_QNAME = new QName("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", "Expires"); + private final static QName _Created_QNAME = new QName("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", "Created"); + private final static QName _Timestamp_QNAME = new QName("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", "Timestamp"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.wss4j.binding.wsu10 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link AttributedDateTime } + * + */ + public AttributedDateTime createAttributedDateTime() { + return new AttributedDateTime(); + } + + /** + * Create an instance of {@link TimestampType } + * + */ + public TimestampType createTimestampType() { + return new TimestampType(); + } + + /** + * Create an instance of {@link AttributedURI } + * + */ + public AttributedURI createAttributedURI() { + return new AttributedURI(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AttributedDateTime }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", name = "Expires") + public JAXBElement<AttributedDateTime> createExpires(AttributedDateTime value) { + return new JAXBElement<AttributedDateTime>(_Expires_QNAME, AttributedDateTime.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AttributedDateTime }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", name = "Created") + public JAXBElement<AttributedDateTime> createCreated(AttributedDateTime value) { + return new JAXBElement<AttributedDateTime>(_Created_QNAME, AttributedDateTime.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TimestampType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", name = "Timestamp") + public JAXBElement<TimestampType> createTimestamp(TimestampType value) { + return new JAXBElement<TimestampType>(_Timestamp_QNAME, TimestampType.class, null, value); + } + +}
Added: webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/TimestampType.java URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/TimestampType.java?rev=1582739&view=auto ============================================================================== --- webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/TimestampType.java (added) +++ webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/TimestampType.java Fri Mar 28 13:01:29 2014 @@ -0,0 +1,219 @@ +/** + * 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. + */ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 +// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2014.03.27 at 03:31:18 PM GMT +// + + +package org.apache.wss4j.binding.wsu10; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyAttribute; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; + + +/** + * + * This complex type ties together the timestamp related elements into a composite type. + * + * + * <p>Java class for TimestampType complex type. + * + * <p>The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="TimestampType"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Created" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Expires" minOccurs="0"/> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <any processContents='lax' namespace='##other'/> + * </choice> + * </sequence> + * <attGroup ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}commonAtts"/> + * <anyAttribute processContents='lax' namespace='##other'/> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TimestampType", propOrder = { + "created", + "expires", + "any" +}) +public class TimestampType { + + @XmlElement(name = "Created") + protected AttributedDateTime created; + @XmlElement(name = "Expires") + protected AttributedDateTime expires; + @XmlAnyElement(lax = true) + protected List<Object> any; + @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd") + @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 created property. + * + * @return + * possible object is + * {@link AttributedDateTime } + * + */ + public AttributedDateTime getCreated() { + return created; + } + + /** + * Sets the value of the created property. + * + * @param value + * allowed object is + * {@link AttributedDateTime } + * + */ + public void setCreated(AttributedDateTime value) { + this.created = value; + } + + /** + * Gets the value of the expires property. + * + * @return + * possible object is + * {@link AttributedDateTime } + * + */ + public AttributedDateTime getExpires() { + return expires; + } + + /** + * Sets the value of the expires property. + * + * @param value + * allowed object is + * {@link AttributedDateTime } + * + */ + public void setExpires(AttributedDateTime value) { + this.expires = value; + } + + /** + * Gets the value of the any property. + * + * <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> + * For example, to add a new item, do as follows: + * <pre> + * getAny().add(newItem); + * </pre> + * + * + * <p> + * Objects of the following type(s) are allowed in the list + * {@link Element } + * {@link Object } + * + * + */ + public List<Object> getAny() { + if (any == null) { + any = new ArrayList<Object>(); + } + return this.any; + } + + /** + * 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> + * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * 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; + } + +} Copied: webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/package-info.java (from r1582723, webservices/wss4j/trunk/bindings/wssc-binding/src/main/java/org/apache/wss4j/binding/wssc/AbstractSecurityContextTokenType.java) URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/package-info.java?p2=webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/package-info.java&p1=webservices/wss4j/trunk/bindings/wssc-binding/src/main/java/org/apache/wss4j/binding/wssc/AbstractSecurityContextTokenType.java&r1=1582723&r2=1582739&rev=1582739&view=diff ============================================================================== --- webservices/wss4j/trunk/bindings/wssc-binding/src/main/java/org/apache/wss4j/binding/wssc/AbstractSecurityContextTokenType.java (original) +++ webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/package-info.java Fri Mar 28 13:01:29 2014 @@ -16,18 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -package org.apache.wss4j.binding.wssc; +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 +// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2014.03.28 at 12:48:03 PM GMT +// -import javax.xml.namespace.QName; -import java.util.List; -import java.util.Map; - -public abstract class AbstractSecurityContextTokenType { - public abstract List<Object> getAny(); - - public abstract String getId(); - - public abstract void setId(String value); - - public abstract Map<QName, String> getOtherAttributes(); -} [email protected](namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package org.apache.wss4j.binding.wsu10; Modified: webservices/wss4j/trunk/ws-security-stax/pom.xml URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-stax/pom.xml?rev=1582739&r1=1582738&r2=1582739&view=diff ============================================================================== --- webservices/wss4j/trunk/ws-security-stax/pom.xml (original) +++ webservices/wss4j/trunk/ws-security-stax/pom.xml Fri Mar 28 13:01:29 2014 @@ -34,19 +34,7 @@ <dependencies> <dependency> <groupId>org.apache.wss4j</groupId> - <artifactId>wss4j-bindings-wss10</artifactId> - <version>${project.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.wss4j</groupId> - <artifactId>wss4j-bindings-wss11</artifactId> - <version>${project.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.wss4j</groupId> - <artifactId>wss4j-bindings-wssc</artifactId> + <artifactId>wss4j-bindings</artifactId> <version>${project.version}</version> <scope>compile</scope> </dependency>
