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:22 PM GMT
24  //
25  
26  
27  package org.apache.wss4j.binding.wss11;
28  
29  import jakarta.xml.bind.annotation.XmlAccessType;
30  import jakarta.xml.bind.annotation.XmlAccessorType;
31  import jakarta.xml.bind.annotation.XmlAttribute;
32  import jakarta.xml.bind.annotation.XmlElement;
33  import jakarta.xml.bind.annotation.XmlID;
34  import jakarta.xml.bind.annotation.XmlSchemaType;
35  import jakarta.xml.bind.annotation.XmlType;
36  import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
37  import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
38  import org.apache.xml.security.binding.xmlenc.EncryptedDataType;
39  
40  
41  /**
42   * <p>Java class for EncryptedHeaderType complex type.
43   *
44   * <p>The following schema fragment specifies the expected content contained within this class.
45   *
46   * <pre>
47   * &lt;complexType name="EncryptedHeaderType">
48   *   &lt;complexContent>
49   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
50   *       &lt;sequence>
51   *         &lt;element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptedData"/>
52   *       &lt;/sequence>
53   *       &lt;attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Id"/>
54   *       &lt;attribute ref="{http://schemas.xmlsoap.org/soap/envelope/}mustUnderstand"/>
55   *       &lt;attribute ref="{http://schemas.xmlsoap.org/soap/envelope/}actor"/>
56   *       &lt;attribute ref="{http://www.w3.org/2003/05/soap-envelope}mustUnderstand"/>
57   *       &lt;attribute ref="{http://www.w3.org/2003/05/soap-envelope}role"/>
58   *       &lt;attribute ref="{http://www.w3.org/2003/05/soap-envelope}relay"/>
59   *     &lt;/restriction>
60   *   &lt;/complexContent>
61   * &lt;/complexType>
62   * </pre>
63   *
64   *
65   */
66  @XmlAccessorType(XmlAccessType.FIELD)
67  @XmlType(name = "EncryptedHeaderType", propOrder = {
68      "encryptedData"
69  })
70  public class EncryptedHeaderType {
71  
72      @XmlElement(name = "EncryptedData", namespace = "http://www.w3.org/2001/04/xmlenc#", required = true)
73      private EncryptedDataType encryptedData;
74      @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
75      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
76      @XmlID
77      @XmlSchemaType(name = "ID")
78      private String id;
79      @XmlAttribute(name = "mustUnderstand", namespace = "http://schemas.xmlsoap.org/soap/envelope/")
80      private Boolean mustUnderstand11;
81      @XmlAttribute(name = "actor", namespace = "http://schemas.xmlsoap.org/soap/envelope/")
82      @XmlSchemaType(name = "anyURI")
83      private String actor;
84      @XmlAttribute(name = "mustUnderstand", namespace = "http://www.w3.org/2003/05/soap-envelope")
85      private Boolean mustUnderstand12;
86      @XmlAttribute(name = "role", namespace = "http://www.w3.org/2003/05/soap-envelope")
87      @XmlSchemaType(name = "anyURI")
88      private String role;
89      @XmlAttribute(name = "relay", namespace = "http://www.w3.org/2003/05/soap-envelope")
90      private Boolean relay;
91  
92      /**
93       * Gets the value of the encryptedData property.
94       *
95       * @return
96       *     possible object is
97       *     {@link EncryptedDataType }
98       *
99       */
100     public EncryptedDataType getEncryptedData() {
101         return encryptedData;
102     }
103 
104     /**
105      * Sets the value of the encryptedData property.
106      *
107      * @param value
108      *     allowed object is
109      *     {@link EncryptedDataType }
110      *
111      */
112     public void setEncryptedData(EncryptedDataType value) {
113         this.encryptedData = value;
114     }
115 
116     /**
117      * Gets the value of the id property.
118      *
119      * @return
120      *     possible object is
121      *     {@link String }
122      *
123      */
124     public String getId() {
125         return id;
126     }
127 
128     /**
129      * Sets the value of the id property.
130      *
131      * @param value
132      *     allowed object is
133      *     {@link String }
134      *
135      */
136     public void setId(String value) {
137         this.id = value;
138     }
139 
140     /**
141      * Gets the value of the mustUnderstand11 property.
142      *
143      * @return
144      *     possible object is
145      *     {@link String }
146      *
147      */
148     public Boolean isMustUnderstand11() {
149         return mustUnderstand11;
150     }
151 
152     /**
153      * Sets the value of the mustUnderstand11 property.
154      *
155      * @param value
156      *     allowed object is
157      *     {@link String }
158      *
159      */
160     public void setMustUnderstand11(Boolean value) {
161         this.mustUnderstand11 = value;
162     }
163 
164     /**
165      * Gets the value of the actor property.
166      *
167      * @return
168      *     possible object is
169      *     {@link String }
170      *
171      */
172     public String getActor() {
173         return actor;
174     }
175 
176     /**
177      * Sets the value of the actor property.
178      *
179      * @param value
180      *     allowed object is
181      *     {@link String }
182      *
183      */
184     public void setActor(String value) {
185         this.actor = value;
186     }
187 
188     /**
189      * Gets the value of the mustUnderstand12 property.
190      *
191      * @return
192      *     possible object is
193      *     {@link Boolean }
194      *
195      */
196     public boolean isMustUnderstand12() {
197         if (mustUnderstand12 == null) {
198             return false;
199         } else {
200             return mustUnderstand12;
201         }
202     }
203 
204     /**
205      * Sets the value of the mustUnderstand12 property.
206      *
207      * @param value
208      *     allowed object is
209      *     {@link Boolean }
210      *
211      */
212     public void setMustUnderstand12(Boolean value) {
213         this.mustUnderstand12 = value;
214     }
215 
216     /**
217      * Gets the value of the role property.
218      *
219      * @return
220      *     possible object is
221      *     {@link String }
222      *
223      */
224     public String getRole() {
225         return role;
226     }
227 
228     /**
229      * Sets the value of the role property.
230      *
231      * @param value
232      *     allowed object is
233      *     {@link String }
234      *
235      */
236     public void setRole(String value) {
237         this.role = value;
238     }
239 
240     /**
241      * Gets the value of the relay property.
242      *
243      * @return
244      *     possible object is
245      *     {@link Boolean }
246      *
247      */
248     public boolean isRelay() {
249         if (relay == null) {
250             return false;
251         } else {
252             return relay;
253         }
254     }
255 
256     /**
257      * Sets the value of the relay property.
258      *
259      * @param value
260      *     allowed object is
261      *     {@link Boolean }
262      *
263      */
264     public void setRelay(Boolean value) {
265         this.relay = value;
266     }
267 
268 }