View Javadoc
1   /**
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements. See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership. The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License. You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied. See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  //
20  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
21  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
22  // Any modifications to this file will be lost upon recompilation of the source schema.
23  // Generated on: 2014.03.27 at 03:31:23 PM GMT
24  //
25  
26  
27  package org.apache.wss4j.binding.wssc200502;
28  
29  import java.util.ArrayList;
30  import java.util.HashMap;
31  import java.util.List;
32  import java.util.Map;
33  import jakarta.xml.bind.annotation.XmlAccessType;
34  import jakarta.xml.bind.annotation.XmlAccessorType;
35  import jakarta.xml.bind.annotation.XmlAnyAttribute;
36  import jakarta.xml.bind.annotation.XmlAnyElement;
37  import jakarta.xml.bind.annotation.XmlAttribute;
38  import jakarta.xml.bind.annotation.XmlID;
39  import jakarta.xml.bind.annotation.XmlSchemaType;
40  import jakarta.xml.bind.annotation.XmlType;
41  import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
42  import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
43  import javax.xml.namespace.QName;
44  import org.apache.wss4j.binding.wssc.AbstractSecurityContextTokenType;
45  import org.w3c.dom.Element;
46  
47  
48  /**
49   *
50   * 		Actual content model is non-deterministic, hence wildcard. The following shows intended content model:
51   *
52   * <pre>
53   * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:p416641_="https://jakarta.ee/xml/ns/jaxb" xmlns:p454050_="http://jaxb2-commons.dev.java.net/basic/inheritance" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" minOccurs="1" ref="wsc:Identifier"/&gt;
54   * </pre>
55   *
56   * <pre>
57   * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:p416641_="https://jakarta.ee/xml/ns/jaxb" xmlns:p454050_="http://jaxb2-commons.dev.java.net/basic/inheritance" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" minOccurs="0" ref="wsc:Instance"/&gt;
58   * </pre>
59   *
60   * <pre>
61   * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;xs:any xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:p416641_="https://jakarta.ee/xml/ns/jaxb" xmlns:p454050_="http://jaxb2-commons.dev.java.net/basic/inheritance" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="lax"/&gt;
62   * </pre>
63   *
64   *
65   * <p>Java class for SecurityContextTokenType complex type.
66   *
67   * <p>The following schema fragment specifies the expected content contained within this class.
68   *
69   * <pre>
70   * &lt;complexType name="SecurityContextTokenType">
71   *   &lt;complexContent>
72   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
73   *       &lt;sequence>
74   *         &lt;any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
75   *       &lt;/sequence>
76   *       &lt;attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Id"/>
77   *       &lt;anyAttribute processContents='lax' namespace='##other'/>
78   *     &lt;/restriction>
79   *   &lt;/complexContent>
80   * &lt;/complexType>
81   * </pre>
82   *
83   *
84   */
85  @XmlAccessorType(XmlAccessType.FIELD)
86  @XmlType(name = "SecurityContextTokenType", propOrder = {
87      "any"
88  })
89  public class SecurityContextTokenType
90      extends AbstractSecurityContextTokenType
91  {
92  
93      @XmlAnyElement(lax = true)
94      private List<Object> any;
95      @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
96      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
97      @XmlID
98      @XmlSchemaType(name = "ID")
99      private String id;
100     @XmlAnyAttribute
101     private Map<QName, String> otherAttributes = new HashMap<>();
102 
103     /**
104      * Gets the value of the any property.
105      *
106      * <p>
107      * This accessor method returns a reference to the live list,
108      * not a snapshot. Therefore any modification you make to the
109      * returned list will be present inside the JAXB object.
110      * This is why there is not a <CODE>set</CODE> method for the any property.
111      *
112      * <p>
113      * For example, to add a new item, do as follows:
114      * <pre>
115      *    getAny().add(newItem);
116      * </pre>
117      *
118      *
119      * <p>
120      * Objects of the following type(s) are allowed in the list
121      * {@link Element }
122      * {@link Object }
123      *
124      *
125      */
126     public List<Object> getAny() {
127         if (any == null) {
128             any = new ArrayList<>();
129         }
130         return this.any;
131     }
132 
133     /**
134      * Gets the value of the id property.
135      *
136      * @return
137      *     possible object is
138      *     {@link String }
139      *
140      */
141     public String getId() {
142         return id;
143     }
144 
145     /**
146      * Sets the value of the id property.
147      *
148      * @param value
149      *     allowed object is
150      *     {@link String }
151      *
152      */
153     public void setId(String value) {
154         this.id = value;
155     }
156 
157     /**
158      * Gets a map that contains attributes that aren't bound to any typed property on this class.
159      *
160      * <p>
161      * the map is keyed by the name of the attribute and
162      * the value is the string value of the attribute.
163      *
164      * the map returned by this method is live, and you can add new attribute
165      * by updating the map directly. Because of this design, there's no setter.
166      *
167      *
168      * @return
169      *     always non-null
170      */
171     public Map<QName, String> getOtherAttributes() {
172         return otherAttributes;
173     }
174 
175 }