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:20 PM GMT
24 //
25
26
27 package org.apache.wss4j.binding.wss10;
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.w3c.dom.Element;
45
46
47 /**
48 * This type is used reference a security token.
49 *
50 * <p>Java class for SecurityTokenReferenceType complex type.
51 *
52 * <p>The following schema fragment specifies the expected content contained within this class.
53 *
54 * <pre>
55 * <complexType name="SecurityTokenReferenceType">
56 * <complexContent>
57 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
58 * <choice maxOccurs="unbounded" minOccurs="0">
59 * <any processContents='lax'/>
60 * </choice>
61 * <attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Id"/>
62 * <attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Usage"/>
63 * <anyAttribute processContents='lax' namespace='##other'/>
64 * </restriction>
65 * </complexContent>
66 * </complexType>
67 * </pre>
68 *
69 *
70 */
71 @XmlAccessorType(XmlAccessType.FIELD)
72 @XmlType(name = "SecurityTokenReferenceType", propOrder = {
73 "any"
74 })
75 public class SecurityTokenReferenceType {
76
77 @XmlAnyElement(lax = true)
78 private List<Object> any;
79 @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
80 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
81 @XmlID
82 @XmlSchemaType(name = "ID")
83 private String id;
84 @XmlAttribute(name = "Usage", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd")
85 private List<String> usage;
86 @XmlAnyAttribute
87 private Map<QName, String> otherAttributes = new HashMap<>();
88
89 /**
90 * Gets the value of the any property.
91 *
92 * <p>
93 * This accessor method returns a reference to the live list,
94 * not a snapshot. Therefore any modification you make to the
95 * returned list will be present inside the JAXB object.
96 * This is why there is not a <CODE>set</CODE> method for the any property.
97 *
98 * <p>
99 * For example, to add a new item, do as follows:
100 * <pre>
101 * getAny().add(newItem);
102 * </pre>
103 *
104 *
105 * <p>
106 * Objects of the following type(s) are allowed in the list
107 * {@link Element }
108 * {@link Object }
109 *
110 *
111 */
112 public List<Object> getAny() {
113 if (any == null) {
114 any = new ArrayList<>();
115 }
116 return this.any;
117 }
118
119 /**
120 * Gets the value of the id property.
121 *
122 * @return
123 * possible object is
124 * {@link String }
125 *
126 */
127 public String getId() {
128 return id;
129 }
130
131 /**
132 * Sets the value of the id property.
133 *
134 * @param value
135 * allowed object is
136 * {@link String }
137 *
138 */
139 public void setId(String value) {
140 this.id = value;
141 }
142
143 /**
144 * Gets the value of the usage property.
145 *
146 * <p>
147 * This accessor method returns a reference to the live list,
148 * not a snapshot. Therefore any modification you make to the
149 * returned list will be present inside the JAXB object.
150 * This is why there is not a <CODE>set</CODE> method for the usage property.
151 *
152 * <p>
153 * For example, to add a new item, do as follows:
154 * <pre>
155 * getUsage().add(newItem);
156 * </pre>
157 *
158 *
159 * <p>
160 * Objects of the following type(s) are allowed in the list
161 * {@link String }
162 *
163 *
164 */
165 public List<String> getUsage() {
166 if (usage == null) {
167 usage = new ArrayList<>();
168 }
169 return this.usage;
170 }
171
172 /**
173 * Gets a map that contains attributes that aren't bound to any typed property on this class.
174 *
175 * <p>
176 * the map is keyed by the name of the attribute and
177 * the value is the string value of the attribute.
178 *
179 * the map returned by this method is live, and you can add new attribute
180 * by updating the map directly. Because of this design, there's no setter.
181 *
182 *
183 * @return
184 * always non-null
185 */
186 public Map<QName, String> getOtherAttributes() {
187 return otherAttributes;
188 }
189
190 }