KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3 > _2001 > _04 > xmlenc_ > EncryptedType


1
2 package org.w3._2001._04.xmlenc_;
3
4 import javax.xml.bind.annotation.XmlAccessType;
5 import javax.xml.bind.annotation.XmlAccessorType;
6 import javax.xml.bind.annotation.XmlAttribute;
7 import javax.xml.bind.annotation.XmlElement;
8 import javax.xml.bind.annotation.XmlID;
9 import javax.xml.bind.annotation.XmlSchemaType;
10 import javax.xml.bind.annotation.XmlType;
11 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
12 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
13
14 import org.w3._2000._09.xmldsig_.KeyInfoType;
15
16
17 /**
18  * <p>Java class for EncryptedType complex type.
19  *
20  * <p>The following schema fragment specifies the expected content contained within this class.
21  *
22  * <pre>
23  * &lt;complexType name="EncryptedType">
24  * &lt;complexContent>
25  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
26  * &lt;sequence>
27  * &lt;element name="EncryptionMethod" type="{http://www.w3.org/2001/04/xmlenc#}EncryptionMethodType" minOccurs="0"/>
28  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
29  * &lt;element ref="{http://www.w3.org/2001/04/xmlenc#}CipherData"/>
30  * &lt;element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptionProperties" minOccurs="0"/>
31  * &lt;/sequence>
32  * &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
33  * &lt;attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
34  * &lt;attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" />
35  * &lt;attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
36  * &lt;/restriction>
37  * &lt;/complexContent>
38  * &lt;/complexType>
39  * </pre>
40  *
41  *
42  */

43 @XmlAccessorType(XmlAccessType.FIELD)
44 @XmlType(name = "EncryptedType", propOrder = {
45     "encryptionMethod",
46     "keyInfo",
47     "cipherData",
48     "encryptionProperties"
49 })
50 /*@XmlSeeAlso({
51     EncryptedDataType.class,
52     EncryptedKeyType.class
53 })*/

54 public abstract class EncryptedType {
55
56     @XmlElement(name = "EncryptionMethod")
57     protected EncryptionMethodType encryptionMethod;
58     @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#")
59     protected KeyInfoType keyInfo;
60     @XmlElement(name = "CipherData", required = true)
61     protected CipherDataType cipherData;
62     @XmlElement(name = "EncryptionProperties")
63     protected EncryptionPropertiesType encryptionProperties;
64     @XmlAttribute(name = "Id")
65     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
66     @XmlID
67     @XmlSchemaType(name = "ID")
68     protected String JavaDoc id;
69     @XmlAttribute(name = "Type")
70     @XmlSchemaType(name = "anyURI")
71     protected String JavaDoc type;
72     @XmlAttribute(name = "MimeType")
73     protected String JavaDoc mimeType;
74     @XmlAttribute(name = "Encoding")
75     @XmlSchemaType(name = "anyURI")
76     protected String JavaDoc encoding;
77
78     /**
79      * Gets the value of the encryptionMethod property.
80      *
81      * @return
82      * possible object is
83      * {@link EncryptionMethodType }
84      *
85      */

86     public EncryptionMethodType getEncryptionMethod() {
87         return encryptionMethod;
88     }
89
90     /**
91      * Sets the value of the encryptionMethod property.
92      *
93      * @param value
94      * allowed object is
95      * {@link EncryptionMethodType }
96      *
97      */

98     public void setEncryptionMethod(EncryptionMethodType value) {
99         this.encryptionMethod = value;
100     }
101
102     /**
103      * Gets the value of the keyInfo property.
104      *
105      * @return
106      * possible object is
107      * {@link KeyInfoType }
108      *
109      */

110     public KeyInfoType getKeyInfo() {
111         return keyInfo;
112     }
113
114     /**
115      * Sets the value of the keyInfo property.
116      *
117      * @param value
118      * allowed object is
119      * {@link KeyInfoType }
120      *
121      */

122     public void setKeyInfo(KeyInfoType value) {
123         this.keyInfo = value;
124     }
125
126     /**
127      * Gets the value of the cipherData property.
128      *
129      * @return
130      * possible object is
131      * {@link CipherDataType }
132      *
133      */

134     public CipherDataType getCipherData() {
135         return cipherData;
136     }
137
138     /**
139      * Sets the value of the cipherData property.
140      *
141      * @param value
142      * allowed object is
143      * {@link CipherDataType }
144      *
145      */

146     public void setCipherData(CipherDataType value) {
147         this.cipherData = value;
148     }
149
150     /**
151      * Gets the value of the encryptionProperties property.
152      *
153      * @return
154      * possible object is
155      * {@link EncryptionPropertiesType }
156      *
157      */

158     public EncryptionPropertiesType getEncryptionProperties() {
159         return encryptionProperties;
160     }
161
162     /**
163      * Sets the value of the encryptionProperties property.
164      *
165      * @param value
166      * allowed object is
167      * {@link EncryptionPropertiesType }
168      *
169      */

170     public void setEncryptionProperties(EncryptionPropertiesType value) {
171         this.encryptionProperties = value;
172     }
173
174     /**
175      * Gets the value of the id property.
176      *
177      * @return
178      * possible object is
179      * {@link String }
180      *
181      */

182     public String JavaDoc getId() {
183         return id;
184     }
185
186     /**
187      * Sets the value of the id property.
188      *
189      * @param value
190      * allowed object is
191      * {@link String }
192      *
193      */

194     public void setId(String JavaDoc value) {
195         this.id = value;
196     }
197
198     /**
199      * Gets the value of the type property.
200      *
201      * @return
202      * possible object is
203      * {@link String }
204      *
205      */

206     public String JavaDoc getType() {
207         return type;
208     }
209
210     /**
211      * Sets the value of the type property.
212      *
213      * @param value
214      * allowed object is
215      * {@link String }
216      *
217      */

218     public void setType(String JavaDoc value) {
219         this.type = value;
220     }
221
222     /**
223      * Gets the value of the mimeType property.
224      *
225      * @return
226      * possible object is
227      * {@link String }
228      *
229      */

230     public String JavaDoc getMimeType() {
231         return mimeType;
232     }
233
234     /**
235      * Sets the value of the mimeType property.
236      *
237      * @param value
238      * allowed object is
239      * {@link String }
240      *
241      */

242     public void setMimeType(String JavaDoc value) {
243         this.mimeType = value;
244     }
245
246     /**
247      * Gets the value of the encoding property.
248      *
249      * @return
250      * possible object is
251      * {@link String }
252      *
253      */

254     public String JavaDoc getEncoding() {
255         return encoding;
256     }
257
258     /**
259      * Sets the value of the encoding property.
260      *
261      * @param value
262      * allowed object is
263      * {@link String }
264      *
265      */

266     public void setEncoding(String JavaDoc value) {
267         this.encoding = value;
268     }
269
270 }
271
Popular Tags