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.XmlType;
38 import javax.xml.namespace.QName;
39 import org.w3c.dom.Element;
40
41
42 /**
43 * This complexType defines header block to use for security-relevant data directed at a specific SOAP actor.
44 *
45 * <p>Java class for SecurityHeaderType complex type.
46 *
47 * <p>The following schema fragment specifies the expected content contained within this class.
48 *
49 * <pre>
50 * <complexType name="SecurityHeaderType">
51 * <complexContent>
52 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
53 * <sequence>
54 * <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
55 * </sequence>
56 * <anyAttribute processContents='lax' namespace='##other'/>
57 * </restriction>
58 * </complexContent>
59 * </complexType>
60 * </pre>
61 *
62 *
63 */
64 @XmlAccessorType(XmlAccessType.FIELD)
65 @XmlType(name = "SecurityHeaderType", propOrder = {
66 "any"
67 })
68 public class SecurityHeaderType {
69
70 @XmlAnyElement(lax = true)
71 private List<Object> any;
72 @XmlAnyAttribute
73 private Map<QName, String> otherAttributes = new HashMap<>();
74
75 /**
76 * Gets the value of the any property.
77 *
78 * <p>
79 * This accessor method returns a reference to the live list,
80 * not a snapshot. Therefore any modification you make to the
81 * returned list will be present inside the JAXB object.
82 * This is why there is not a <CODE>set</CODE> method for the any property.
83 *
84 * <p>
85 * For example, to add a new item, do as follows:
86 * <pre>
87 * getAny().add(newItem);
88 * </pre>
89 *
90 *
91 * <p>
92 * Objects of the following type(s) are allowed in the list
93 * {@link Element }
94 * {@link Object }
95 *
96 *
97 */
98 public List<Object> getAny() {
99 if (any == null) {
100 any = new ArrayList<>();
101 }
102 return this.any;
103 }
104
105 /**
106 * Gets a map that contains attributes that aren't bound to any typed property on this class.
107 *
108 * <p>
109 * the map is keyed by the name of the attribute and
110 * the value is the string value of the attribute.
111 *
112 * the map returned by this method is live, and you can add new attribute
113 * by updating the map directly. Because of this design, there's no setter.
114 *
115 *
116 * @return
117 * always non-null
118 */
119 public Map<QName, String> getOtherAttributes() {
120 return otherAttributes;
121 }
122
123 }