001: /*
002: * The contents of this file are subject to the terms
003: * of the Common Development and Distribution License
004: * (the License). You may not use this file except in
005: * compliance with the License.
006: *
007: * You can obtain a copy of the license at
008: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
009: * See the License for the specific language governing
010: * permissions and limitations under the License.
011: *
012: * When distributing Covered Code, include this CDDL
013: * Header Notice in each file and include the License file
014: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
015: * If applicable, add the following below the CDDL Header,
016: * with the fields enclosed by brackets [] replaced by
017: * you own identifying information:
018: * "Portions Copyrighted [year] [name of copyright owner]"
019: *
020: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
021: */
022:
023: //
024: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b24-ea3
025: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
026: // Any modifications to this file will be lost upon recompilation of the source schema.
027: // Generated on: 2006.02.03 at 04:10:33 PM IST
028: //
029:
030: package com.sun.xml.security.core.xenc;
031:
032: import javax.xml.bind.annotation.XmlAccessType;
033: import javax.xml.bind.annotation.XmlAccessorType;
034: import javax.xml.bind.annotation.XmlAttribute;
035: import javax.xml.bind.annotation.XmlElement;
036: import javax.xml.bind.annotation.XmlID;
037: import javax.xml.bind.annotation.XmlType;
038: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
039: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
040: import com.sun.xml.security.core.dsig.KeyInfoType;
041:
042: /**
043: * <p>Java class for EncryptedType complex type.
044: *
045: * <p>The following schema fragment specifies the expected content contained within this class.
046: *
047: * <pre>
048: * <complexType name="EncryptedType">
049: * <complexContent>
050: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
051: * <sequence>
052: * <element name="EncryptionMethod" type="{http://www.w3.org/2001/04/xmlenc#}EncryptionMethodType" minOccurs="0"/>
053: * <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
054: * <element ref="{http://www.w3.org/2001/04/xmlenc#}CipherData"/>
055: * <element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptionProperties" minOccurs="0"/>
056: * </sequence>
057: * <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
058: * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
059: * <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" />
060: * <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
061: * </restriction>
062: * </complexContent>
063: * </complexType>
064: * </pre>
065: *
066: *
067: */
068: @XmlAccessorType(XmlAccessType.FIELD)
069: @XmlType(name="EncryptedType",propOrder={"encryptionMethod","keyInfo","cipherData","encryptionProperties"})
070: public abstract class EncryptedType {
071:
072: @XmlElement(name="EncryptionMethod",namespace="http://www.w3.org/2001/04/xmlenc#")
073: protected EncryptionMethodType encryptionMethod;
074: @XmlElement(name="KeyInfo",namespace="http://www.w3.org/2000/09/xmldsig#")
075: protected KeyInfoType keyInfo;
076: @XmlElement(name="CipherData",namespace="http://www.w3.org/2001/04/xmlenc#")
077: protected CipherDataType cipherData;
078: @XmlElement(name="EncryptionProperties",namespace="http://www.w3.org/2001/04/xmlenc#")
079: protected EncryptionPropertiesType encryptionProperties;
080: @XmlAttribute(name="Encoding")
081: protected String encoding;
082: @XmlAttribute(name="Id")
083: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
084: @XmlID
085: protected String id;
086: @XmlAttribute(name="MimeType")
087: protected String mimeType;
088: @XmlAttribute(name="Type")
089: protected String type;
090:
091: /**
092: * Gets the value of the encryptionMethod property.
093: *
094: * @return
095: * possible object is
096: * {@link EncryptionMethodType }
097: *
098: */
099: public EncryptionMethodType getEncryptionMethod() {
100: return encryptionMethod;
101: }
102:
103: /**
104: * Sets the value of the encryptionMethod property.
105: *
106: * @param value
107: * allowed object is
108: * {@link EncryptionMethodType }
109: *
110: */
111: public void setEncryptionMethod(EncryptionMethodType value) {
112: this .encryptionMethod = value;
113: }
114:
115: /**
116: * Gets the value of the keyInfo property.
117: *
118: * @return
119: * possible object is
120: * {@link KeyInfoType }
121: *
122: */
123: public KeyInfoType getKeyInfo() {
124: return keyInfo;
125: }
126:
127: /**
128: * Sets the value of the keyInfo property.
129: *
130: * @param value
131: * allowed object is
132: * {@link KeyInfoType }
133: *
134: */
135: public void setKeyInfo(KeyInfoType value) {
136: this .keyInfo = value;
137: }
138:
139: /**
140: * Gets the value of the cipherData property.
141: *
142: * @return
143: * possible object is
144: * {@link CipherDataType }
145: *
146: */
147: public CipherDataType getCipherData() {
148: return cipherData;
149: }
150:
151: /**
152: * Sets the value of the cipherData property.
153: *
154: * @param value
155: * allowed object is
156: * {@link CipherDataType }
157: *
158: */
159: public void setCipherData(CipherDataType value) {
160: this .cipherData = value;
161: }
162:
163: /**
164: * Gets the value of the encryptionProperties property.
165: *
166: * @return
167: * possible object is
168: * {@link EncryptionPropertiesType }
169: *
170: */
171: public EncryptionPropertiesType getEncryptionProperties() {
172: return encryptionProperties;
173: }
174:
175: /**
176: * Sets the value of the encryptionProperties property.
177: *
178: * @param value
179: * allowed object is
180: * {@link EncryptionPropertiesType }
181: *
182: */
183: public void setEncryptionProperties(EncryptionPropertiesType value) {
184: this .encryptionProperties = value;
185: }
186:
187: /**
188: * Gets the value of the encoding property.
189: *
190: * @return
191: * possible object is
192: * {@link String }
193: *
194: */
195: public String getEncoding() {
196: return encoding;
197: }
198:
199: /**
200: * Sets the value of the encoding property.
201: *
202: * @param value
203: * allowed object is
204: * {@link String }
205: *
206: */
207: public void setEncoding(String value) {
208: this .encoding = value;
209: }
210:
211: /**
212: * Gets the value of the id property.
213: *
214: * @return
215: * possible object is
216: * {@link String }
217: *
218: */
219: public String getId() {
220: return id;
221: }
222:
223: /**
224: * Sets the value of the id property.
225: *
226: * @param value
227: * allowed object is
228: * {@link String }
229: *
230: */
231: public void setId(String value) {
232: this .id = value;
233: }
234:
235: /**
236: * Gets the value of the mimeType property.
237: *
238: * @return
239: * possible object is
240: * {@link String }
241: *
242: */
243: public String getMimeType() {
244: return mimeType;
245: }
246:
247: /**
248: * Sets the value of the mimeType property.
249: *
250: * @param value
251: * allowed object is
252: * {@link String }
253: *
254: */
255: public void setMimeType(String value) {
256: this .mimeType = value;
257: }
258:
259: /**
260: * Gets the value of the type property.
261: *
262: * @return
263: * possible object is
264: * {@link String }
265: *
266: */
267: public String getType() {
268: return type;
269: }
270:
271: /**
272: * Sets the value of the type property.
273: *
274: * @param value
275: * allowed object is
276: * {@link String }
277: *
278: */
279: public void setType(String value) {
280: this.type = value;
281: }
282:
283: }
|