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.11
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: 2018.05.01 at 12:07:44 PM IST
24  //
25  
26  
27  package org.apache.wss4j.binding.wss10;
28  
29  import java.io.Serializable;
30  import java.util.ArrayList;
31  import java.util.HashMap;
32  import java.util.List;
33  import java.util.Map;
34  import jakarta.xml.bind.JAXBElement;
35  import jakarta.xml.bind.annotation.XmlAccessType;
36  import jakarta.xml.bind.annotation.XmlAccessorType;
37  import jakarta.xml.bind.annotation.XmlAnyAttribute;
38  import jakarta.xml.bind.annotation.XmlAttribute;
39  import jakarta.xml.bind.annotation.XmlElementRef;
40  import jakarta.xml.bind.annotation.XmlID;
41  import jakarta.xml.bind.annotation.XmlMixed;
42  import jakarta.xml.bind.annotation.XmlSchemaType;
43  import jakarta.xml.bind.annotation.XmlType;
44  import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
45  import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
46  import javax.xml.namespace.QName;
47  import org.apache.xml.security.binding.xop.Include;
48  
49  
50  /**
51   * A security token that is encoded in binary
52   *
53   * <p>Java class for BinarySecurityTokenType complex type.
54   *
55   * <p>The following schema fragment specifies the expected content contained within this class.
56   *
57   * <pre>
58   * &lt;complexType name="BinarySecurityTokenType"&gt;
59   *   &lt;complexContent&gt;
60   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
61   *       &lt;sequence&gt;
62   *         &lt;element ref="{http://www.w3.org/2004/08/xop/include}Include" minOccurs="0"/&gt;
63   *       &lt;/sequence&gt;
64   *       &lt;attribute name="ValueType" type="{http://www.w3.org/2001/XMLSchema}anyURI" /&gt;
65   *       &lt;attribute name="EncodingType" type="{http://www.w3.org/2001/XMLSchema}anyURI" /&gt;
66   *       &lt;attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Id"/&gt;
67   *       &lt;anyAttribute processContents='lax' namespace='##other'/&gt;
68   *     &lt;/restriction&gt;
69   *   &lt;/complexContent&gt;
70   * &lt;/complexType&gt;
71   * </pre>
72   *
73   *
74   */
75  @XmlAccessorType(XmlAccessType.FIELD)
76  @XmlType(name = "BinarySecurityTokenType", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", propOrder = {
77      "content"
78  })
79  public class BinarySecurityTokenType {
80  
81      @XmlElementRef(name = "Include", namespace = "http://www.w3.org/2004/08/xop/include", type = JAXBElement.class)
82      @XmlMixed
83      protected List<Serializable> content;
84      @XmlAttribute(name = "ValueType")
85      @XmlSchemaType(name = "anyURI")
86      protected String valueType;
87      @XmlAttribute(name = "EncodingType")
88      @XmlSchemaType(name = "anyURI")
89      protected String encodingType;
90      @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
91      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
92      @XmlID
93      @XmlSchemaType(name = "ID")
94      protected String id;
95      @XmlAnyAttribute
96      private Map<QName, String> otherAttributes = new HashMap<>();
97  
98      /**
99       * A security token that is encoded in binary Gets the value of the content property.
100      *
101      * <p>
102      * This accessor method returns a reference to the live list,
103      * not a snapshot. Therefore any modification you make to the
104      * returned list will be present inside the JAXB object.
105      * This is why there is not a <CODE>set</CODE> method for the content property.
106      *
107      * <p>
108      * For example, to add a new item, do as follows:
109      * <pre>
110      *    getContent().add(newItem);
111      * </pre>
112      *
113      *
114      * <p>
115      * Objects of the following type(s) are allowed in the list
116      * {@link String }
117      * {@link JAXBElement }{@code <}{@link Include }{@code >}
118      *
119      *
120      */
121     public List<Serializable> getContent() {
122         if (content == null) {
123             content = new ArrayList<>();
124         }
125         return this.content;
126     }
127 
128     /**
129      * Gets the value of the valueType property.
130      *
131      * @return
132      *     possible object is
133      *     {@link String }
134      *
135      */
136     public String getValueType() {
137         return valueType;
138     }
139 
140     /**
141      * Sets the value of the valueType property.
142      *
143      * @param value
144      *     allowed object is
145      *     {@link String }
146      *
147      */
148     public void setValueType(String value) {
149         this.valueType = value;
150     }
151 
152     /**
153      * Gets the value of the encodingType property.
154      *
155      * @return
156      *     possible object is
157      *     {@link String }
158      *
159      */
160     public String getEncodingType() {
161         return encodingType;
162     }
163 
164     /**
165      * Sets the value of the encodingType property.
166      *
167      * @param value
168      *     allowed object is
169      *     {@link String }
170      *
171      */
172     public void setEncodingType(String value) {
173         this.encodingType = value;
174     }
175 
176     /**
177      * Gets the value of the id property.
178      *
179      * @return
180      *     possible object is
181      *     {@link String }
182      *
183      */
184     public String getId() {
185         return id;
186     }
187 
188     /**
189      * Sets the value of the id property.
190      *
191      * @param value
192      *     allowed object is
193      *     {@link String }
194      *
195      */
196     public void setId(String value) {
197         this.id = value;
198     }
199 
200     /**
201      * Gets a map that contains attributes that aren't bound to any typed property on this class.
202      *
203      * <p>
204      * the map is keyed by the name of the attribute and
205      * the value is the string value of the attribute.
206      *
207      * the map returned by this method is live, and you can add new attribute
208      * by updating the map directly. Because of this design, there's no setter.
209      *
210      *
211      * @return
212      *     always non-null
213      */
214     public Map<QName, String> getOtherAttributes() {
215         return otherAttributes;
216     }
217 
218 }