001: package org.w3._2001._04.xmlenc_;
002:
003: import javax.xml.bind.annotation.XmlAccessType;
004: import javax.xml.bind.annotation.XmlAccessorType;
005: import javax.xml.bind.annotation.XmlAttribute;
006: import javax.xml.bind.annotation.XmlElement;
007: import javax.xml.bind.annotation.XmlID;
008: import javax.xml.bind.annotation.XmlSchemaType;
009: import javax.xml.bind.annotation.XmlType;
010: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
011: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
012:
013: import org.w3._2000._09.xmldsig_.KeyInfoType;
014:
015: /**
016: * <p>Java class for EncryptedType complex type.
017: *
018: * <p>The following schema fragment specifies the expected content contained within this class.
019: *
020: * <pre>
021: * <complexType name="EncryptedType">
022: * <complexContent>
023: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
024: * <sequence>
025: * <element name="EncryptionMethod" type="{http://www.w3.org/2001/04/xmlenc#}EncryptionMethodType" minOccurs="0"/>
026: * <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
027: * <element ref="{http://www.w3.org/2001/04/xmlenc#}CipherData"/>
028: * <element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptionProperties" minOccurs="0"/>
029: * </sequence>
030: * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
031: * <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
032: * <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" />
033: * <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
034: * </restriction>
035: * </complexContent>
036: * </complexType>
037: * </pre>
038: *
039: *
040: */
041: @XmlAccessorType(XmlAccessType.FIELD)
042: @XmlType(name="EncryptedType",propOrder={"encryptionMethod","keyInfo","cipherData","encryptionProperties"})
043: /*@XmlSeeAlso({
044: EncryptedDataType.class,
045: EncryptedKeyType.class
046: })*/
047: public abstract class EncryptedType {
048:
049: @XmlElement(name="EncryptionMethod")
050: protected EncryptionMethodType encryptionMethod;
051: @XmlElement(name="KeyInfo",namespace="http://www.w3.org/2000/09/xmldsig#")
052: protected KeyInfoType keyInfo;
053: @XmlElement(name="CipherData",required=true)
054: protected CipherDataType cipherData;
055: @XmlElement(name="EncryptionProperties")
056: protected EncryptionPropertiesType encryptionProperties;
057: @XmlAttribute(name="Id")
058: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
059: @XmlID
060: @XmlSchemaType(name="ID")
061: protected String id;
062: @XmlAttribute(name="Type")
063: @XmlSchemaType(name="anyURI")
064: protected String type;
065: @XmlAttribute(name="MimeType")
066: protected String mimeType;
067: @XmlAttribute(name="Encoding")
068: @XmlSchemaType(name="anyURI")
069: protected String encoding;
070:
071: /**
072: * Gets the value of the encryptionMethod property.
073: *
074: * @return
075: * possible object is
076: * {@link EncryptionMethodType }
077: *
078: */
079: public EncryptionMethodType getEncryptionMethod() {
080: return encryptionMethod;
081: }
082:
083: /**
084: * Sets the value of the encryptionMethod property.
085: *
086: * @param value
087: * allowed object is
088: * {@link EncryptionMethodType }
089: *
090: */
091: public void setEncryptionMethod(EncryptionMethodType value) {
092: this .encryptionMethod = value;
093: }
094:
095: /**
096: * Gets the value of the keyInfo property.
097: *
098: * @return
099: * possible object is
100: * {@link KeyInfoType }
101: *
102: */
103: public KeyInfoType getKeyInfo() {
104: return keyInfo;
105: }
106:
107: /**
108: * Sets the value of the keyInfo property.
109: *
110: * @param value
111: * allowed object is
112: * {@link KeyInfoType }
113: *
114: */
115: public void setKeyInfo(KeyInfoType value) {
116: this .keyInfo = value;
117: }
118:
119: /**
120: * Gets the value of the cipherData property.
121: *
122: * @return
123: * possible object is
124: * {@link CipherDataType }
125: *
126: */
127: public CipherDataType getCipherData() {
128: return cipherData;
129: }
130:
131: /**
132: * Sets the value of the cipherData property.
133: *
134: * @param value
135: * allowed object is
136: * {@link CipherDataType }
137: *
138: */
139: public void setCipherData(CipherDataType value) {
140: this .cipherData = value;
141: }
142:
143: /**
144: * Gets the value of the encryptionProperties property.
145: *
146: * @return
147: * possible object is
148: * {@link EncryptionPropertiesType }
149: *
150: */
151: public EncryptionPropertiesType getEncryptionProperties() {
152: return encryptionProperties;
153: }
154:
155: /**
156: * Sets the value of the encryptionProperties property.
157: *
158: * @param value
159: * allowed object is
160: * {@link EncryptionPropertiesType }
161: *
162: */
163: public void setEncryptionProperties(EncryptionPropertiesType value) {
164: this .encryptionProperties = value;
165: }
166:
167: /**
168: * Gets the value of the id property.
169: *
170: * @return
171: * possible object is
172: * {@link String }
173: *
174: */
175: public String getId() {
176: return id;
177: }
178:
179: /**
180: * Sets the value of the id property.
181: *
182: * @param value
183: * allowed object is
184: * {@link String }
185: *
186: */
187: public void setId(String value) {
188: this .id = value;
189: }
190:
191: /**
192: * Gets the value of the type property.
193: *
194: * @return
195: * possible object is
196: * {@link String }
197: *
198: */
199: public String getType() {
200: return type;
201: }
202:
203: /**
204: * Sets the value of the type property.
205: *
206: * @param value
207: * allowed object is
208: * {@link String }
209: *
210: */
211: public void setType(String value) {
212: this .type = value;
213: }
214:
215: /**
216: * Gets the value of the mimeType property.
217: *
218: * @return
219: * possible object is
220: * {@link String }
221: *
222: */
223: public String getMimeType() {
224: return mimeType;
225: }
226:
227: /**
228: * Sets the value of the mimeType property.
229: *
230: * @param value
231: * allowed object is
232: * {@link String }
233: *
234: */
235: public void setMimeType(String value) {
236: this .mimeType = value;
237: }
238:
239: /**
240: * Gets the value of the encoding property.
241: *
242: * @return
243: * possible object is
244: * {@link String }
245: *
246: */
247: public String getEncoding() {
248: return encoding;
249: }
250:
251: /**
252: * Sets the value of the encoding property.
253: *
254: * @param value
255: * allowed object is
256: * {@link String }
257: *
258: */
259: public void setEncoding(String value) {
260: this.encoding = value;
261: }
262:
263: }
|