KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package org.w3._2001._04.xmlenc_;
3
4 import java.math.BigInteger JavaDoc;
5 import java.util.ArrayList JavaDoc;
6 import java.util.List JavaDoc;
7 import javax.xml.bind.JAXBElement;
8 import javax.xml.bind.annotation.XmlAccessType;
9 import javax.xml.bind.annotation.XmlAccessorType;
10 import javax.xml.bind.annotation.XmlAnyElement;
11 import javax.xml.bind.annotation.XmlAttribute;
12 import javax.xml.bind.annotation.XmlElementRef;
13 import javax.xml.bind.annotation.XmlElementRefs;
14 import javax.xml.bind.annotation.XmlMixed;
15 import javax.xml.bind.annotation.XmlSchemaType;
16 import javax.xml.bind.annotation.XmlType;
17
18
19 /**
20  * <p>Java class for EncryptionMethodType complex type.
21  *
22  * <p>The following schema fragment specifies the expected content contained within this class.
23  *
24  * <pre>
25  * &lt;complexType name="EncryptionMethodType">
26  * &lt;complexContent>
27  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28  * &lt;sequence>
29  * &lt;element name="KeySize" type="{http://www.w3.org/2001/04/xmlenc#}KeySizeType" minOccurs="0"/>
30  * &lt;element name="OAEPparams" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
31  * &lt;any/>
32  * &lt;/sequence>
33  * &lt;attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
34  * &lt;/restriction>
35  * &lt;/complexContent>
36  * &lt;/complexType>
37  * </pre>
38  *
39  *
40  */

41 @XmlAccessorType(XmlAccessType.FIELD)
42 @XmlType(name = "EncryptionMethodType", propOrder = {
43     "content"
44 })
45 public class EncryptionMethodType {
46
47     @XmlElementRefs({
48         @XmlElementRef(name = "KeySize", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class),
49         @XmlElementRef(name = "OAEPparams", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class)
50     })
51     @XmlMixed
52     @XmlAnyElement(lax = true)
53     protected List JavaDoc<Object JavaDoc> content;
54     @XmlAttribute(name = "Algorithm", required = true)
55     @XmlSchemaType(name = "anyURI")
56     protected String JavaDoc algorithm;
57
58     /**
59      * Gets the value of the content property.
60      *
61      * <p>
62      * This accessor method returns a reference to the live list,
63      * not a snapshot. Therefore any modification you make to the
64      * returned list will be present inside the JAXB object.
65      * This is why there is not a <CODE>set</CODE> method for the content property.
66      *
67      * <p>
68      * For example, to add a new item, do as follows:
69      * <pre>
70      * getContent().add(newItem);
71      * </pre>
72      *
73      *
74      * <p>
75      * Objects of the following type(s) are allowed in the list
76      * {@link String }
77      * {@link Object }
78      * {@link JAXBElement }{@code <}{@link BigInteger }{@code >}
79      * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
80      *
81      *
82      */

83     public List JavaDoc<Object JavaDoc> getContent() {
84         if (content == null) {
85             content = new ArrayList JavaDoc<Object JavaDoc>();
86         }
87         return this.content;
88     }
89
90     /**
91      * Gets the value of the algorithm property.
92      *
93      * @return
94      * possible object is
95      * {@link String }
96      *
97      */

98     public String JavaDoc getAlgorithm() {
99         return algorithm;
100     }
101
102     /**
103      * Sets the value of the algorithm property.
104      *
105      * @param value
106      * allowed object is
107      * {@link String }
108      *
109      */

110     public void setAlgorithm(String JavaDoc value) {
111         this.algorithm = value;
112     }
113
114 }
115
Popular Tags