KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3 > _2000 > _09 > xmldsig_ > SignatureType


1
2 package org.w3._2000._09.xmldsig_;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.List JavaDoc;
6 import javax.xml.bind.annotation.XmlAccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlAttribute;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlID;
11 import javax.xml.bind.annotation.XmlRootElement;
12 import javax.xml.bind.annotation.XmlSchemaType;
13 import javax.xml.bind.annotation.XmlType;
14 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
15 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
16
17
18 /**
19  * <p>Java class for SignatureType complex type.
20  *
21  * <p>The following schema fragment specifies the expected content contained within this class.
22  *
23  * <pre>
24  * &lt;complexType name="SignatureType">
25  * &lt;complexContent>
26  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27  * &lt;sequence>
28  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}SignedInfo"/>
29  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}SignatureValue"/>
30  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
31  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}Object" maxOccurs="unbounded" minOccurs="0"/>
32  * &lt;/sequence>
33  * &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
34  * &lt;/restriction>
35  * &lt;/complexContent>
36  * &lt;/complexType>
37  * </pre>
38  *
39  *
40  */

41
42 @XmlAccessorType(XmlAccessType.FIELD)
43 @XmlType(name = "SignatureType", propOrder = {
44     "signedInfo",
45     "signatureValue",
46     "keyInfo",
47     "object"
48 })
49 public class SignatureType {
50
51     @XmlElement(name = "SignedInfo", required = true)
52     protected SignedInfoType signedInfo;
53     @XmlElement(name = "SignatureValue", required = true)
54     protected SignatureValueType signatureValue;
55     @XmlElement(name = "KeyInfo")
56     protected KeyInfoType keyInfo;
57     @XmlElement(name = "Object")
58     protected List JavaDoc<ObjectType> object;
59     @XmlAttribute(name = "Id")
60     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
61     @XmlID
62     @XmlSchemaType(name = "ID")
63     protected String JavaDoc id;
64
65     /**
66      * Gets the value of the signedInfo property.
67      *
68      * @return
69      * possible object is
70      * {@link SignedInfoType }
71      *
72      */

73     public SignedInfoType getSignedInfo() {
74         return signedInfo;
75     }
76
77     /**
78      * Sets the value of the signedInfo property.
79      *
80      * @param value
81      * allowed object is
82      * {@link SignedInfoType }
83      *
84      */

85     public void setSignedInfo(SignedInfoType value) {
86         this.signedInfo = value;
87     }
88
89     /**
90      * Gets the value of the signatureValue property.
91      *
92      * @return
93      * possible object is
94      * {@link SignatureValueType }
95      *
96      */

97     public SignatureValueType getSignatureValue() {
98         return signatureValue;
99     }
100
101     /**
102      * Sets the value of the signatureValue property.
103      *
104      * @param value
105      * allowed object is
106      * {@link SignatureValueType }
107      *
108      */

109     public void setSignatureValue(SignatureValueType value) {
110         this.signatureValue = value;
111     }
112
113     /**
114      * Gets the value of the keyInfo property.
115      *
116      * @return
117      * possible object is
118      * {@link KeyInfoType }
119      *
120      */

121     public KeyInfoType getKeyInfo() {
122         return keyInfo;
123     }
124
125     /**
126      * Sets the value of the keyInfo property.
127      *
128      * @param value
129      * allowed object is
130      * {@link KeyInfoType }
131      *
132      */

133     public void setKeyInfo(KeyInfoType value) {
134         this.keyInfo = value;
135     }
136
137     /**
138      * Gets the value of the object property.
139      *
140      * <p>
141      * This accessor method returns a reference to the live list,
142      * not a snapshot. Therefore any modification you make to the
143      * returned list will be present inside the JAXB object.
144      * This is why there is not a <CODE>set</CODE> method for the object property.
145      *
146      * <p>
147      * For example, to add a new item, do as follows:
148      * <pre>
149      * getObject().add(newItem);
150      * </pre>
151      *
152      *
153      * <p>
154      * Objects of the following type(s) are allowed in the list
155      * {@link ObjectType }
156      *
157      *
158      */

159     public List JavaDoc<ObjectType> getObject() {
160         if (object == null) {
161             object = new ArrayList JavaDoc<ObjectType>();
162         }
163         return this.object;
164     }
165
166     /**
167      * Gets the value of the id property.
168      *
169      * @return
170      * possible object is
171      * {@link String }
172      *
173      */

174     public String JavaDoc getId() {
175         return id;
176     }
177
178     /**
179      * Sets the value of the id property.
180      *
181      * @param value
182      * allowed object is
183      * {@link String }
184      *
185      */

186     public void setId(String JavaDoc value) {
187         this.id = value;
188     }
189
190 }
191
Popular Tags