View Javadoc
1   /*
2    * Copyright 2001-2008 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   */
17  
18  
19  package org.w3._2000._09.xmldsig_;
20  
21  import java.util.ArrayList;
22  import java.util.List;
23  import javax.xml.bind.annotation.XmlAccessType;
24  import javax.xml.bind.annotation.XmlAccessorType;
25  import javax.xml.bind.annotation.XmlAttribute;
26  import javax.xml.bind.annotation.XmlElement;
27  import javax.xml.bind.annotation.XmlID;
28  import javax.xml.bind.annotation.XmlSchemaType;
29  import javax.xml.bind.annotation.XmlType;
30  import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
31  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
32  
33  
34  /**
35   * <p>Java class for SignatureType complex type.
36   * 
37   * <p>The following schema fragment specifies the expected content contained within this class.
38   * 
39   * <pre>
40   * &lt;complexType name="SignatureType">
41   *   &lt;complexContent>
42   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43   *       &lt;sequence>
44   *         &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}SignedInfo"/>
45   *         &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}SignatureValue"/>
46   *         &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
47   *         &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}Object" maxOccurs="unbounded" minOccurs="0"/>
48   *       &lt;/sequence>
49   *       &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
50   *     &lt;/restriction>
51   *   &lt;/complexContent>
52   * &lt;/complexType>
53   * </pre>
54   * 
55   * 
56   */
57  @XmlAccessorType(XmlAccessType.FIELD)
58  @XmlType(name = "SignatureType", propOrder = {
59      "signedInfo",
60      "signatureValue",
61      "keyInfo",
62      "object"
63  })
64  public class SignatureType {
65  
66      @XmlElement(name = "SignedInfo", required = true)
67      protected SignedInfoType signedInfo;
68      @XmlElement(name = "SignatureValue", required = true)
69      protected SignatureValueType signatureValue;
70      @XmlElement(name = "KeyInfo")
71      protected KeyInfoType keyInfo;
72      @XmlElement(name = "Object")
73      protected List<ObjectType> object;
74      @XmlAttribute(name = "Id")
75      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
76      @XmlID
77      @XmlSchemaType(name = "ID")
78      protected String id;
79  
80      /**
81       * Gets the value of the signedInfo property.
82       * 
83       * @return
84       *     possible object is
85       *     {@link SignedInfoType }
86       *     
87       */
88      public SignedInfoType getSignedInfo() {
89          return signedInfo;
90      }
91  
92      /**
93       * Sets the value of the signedInfo property.
94       * 
95       * @param value
96       *     allowed object is
97       *     {@link SignedInfoType }
98       *     
99       */
100     public void setSignedInfo(SignedInfoType value) {
101         this.signedInfo = value;
102     }
103 
104     /**
105      * Gets the value of the signatureValue property.
106      * 
107      * @return
108      *     possible object is
109      *     {@link SignatureValueType }
110      *     
111      */
112     public SignatureValueType getSignatureValue() {
113         return signatureValue;
114     }
115 
116     /**
117      * Sets the value of the signatureValue property.
118      * 
119      * @param value
120      *     allowed object is
121      *     {@link SignatureValueType }
122      *     
123      */
124     public void setSignatureValue(SignatureValueType value) {
125         this.signatureValue = value;
126     }
127 
128     /**
129      * Gets the value of the keyInfo property.
130      * 
131      * @return
132      *     possible object is
133      *     {@link KeyInfoType }
134      *     
135      */
136     public KeyInfoType getKeyInfo() {
137         return keyInfo;
138     }
139 
140     /**
141      * Sets the value of the keyInfo property.
142      * 
143      * @param value
144      *     allowed object is
145      *     {@link KeyInfoType }
146      *     
147      */
148     public void setKeyInfo(KeyInfoType value) {
149         this.keyInfo = value;
150     }
151 
152     /**
153      * Gets the value of the object property.
154      * 
155      * <p>
156      * This accessor method returns a reference to the live list,
157      * not a snapshot. Therefore any modification you make to the
158      * returned list will be present inside the JAXB object.
159      * This is why there is not a <CODE>set</CODE> method for the object property.
160      * 
161      * <p>
162      * For example, to add a new item, do as follows:
163      * <pre>
164      *    getObject().add(newItem);
165      * </pre>
166      * 
167      * 
168      * <p>
169      * Objects of the following type(s) are allowed in the list
170      * {@link ObjectType }
171      * 
172      * 
173      */
174     public List<ObjectType> getObject() {
175         if (object == null) {
176             object = new ArrayList<ObjectType>();
177         }
178         return this.object;
179     }
180 
181     /**
182      * Gets the value of the id property.
183      * 
184      * @return
185      *     possible object is
186      *     {@link String }
187      *     
188      */
189     public String getId() {
190         return id;
191     }
192 
193     /**
194      * Sets the value of the id property.
195      * 
196      * @param value
197      *     allowed object is
198      *     {@link String }
199      *     
200      */
201     public void setId(String value) {
202         this.id = value;
203     }
204 
205 }