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 SignedInfoType complex type.
36   * 
37   * <p>The following schema fragment specifies the expected content contained within this class.
38   * 
39   * <pre>
40   * &lt;complexType name="SignedInfoType">
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#}CanonicalizationMethod"/>
45   *         &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}SignatureMethod"/>
46   *         &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}Reference" maxOccurs="unbounded"/>
47   *       &lt;/sequence>
48   *       &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
49   *     &lt;/restriction>
50   *   &lt;/complexContent>
51   * &lt;/complexType>
52   * </pre>
53   * 
54   * 
55   */
56  @XmlAccessorType(XmlAccessType.FIELD)
57  @XmlType(name = "SignedInfoType", propOrder = {
58      "canonicalizationMethod",
59      "signatureMethod",
60      "reference"
61  })
62  public class SignedInfoType {
63  
64      @XmlElement(name = "CanonicalizationMethod", required = true)
65      protected CanonicalizationMethodType canonicalizationMethod;
66      @XmlElement(name = "SignatureMethod", required = true)
67      protected SignatureMethodType signatureMethod;
68      @XmlElement(name = "Reference", required = true)
69      protected List<ReferenceType> reference;
70      @XmlAttribute(name = "Id")
71      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
72      @XmlID
73      @XmlSchemaType(name = "ID")
74      protected String id;
75  
76      /**
77       * Gets the value of the canonicalizationMethod property.
78       * 
79       * @return
80       *     possible object is
81       *     {@link CanonicalizationMethodType }
82       *     
83       */
84      public CanonicalizationMethodType getCanonicalizationMethod() {
85          return canonicalizationMethod;
86      }
87  
88      /**
89       * Sets the value of the canonicalizationMethod property.
90       * 
91       * @param value
92       *     allowed object is
93       *     {@link CanonicalizationMethodType }
94       *     
95       */
96      public void setCanonicalizationMethod(CanonicalizationMethodType value) {
97          this.canonicalizationMethod = value;
98      }
99  
100     /**
101      * Gets the value of the signatureMethod property.
102      * 
103      * @return
104      *     possible object is
105      *     {@link SignatureMethodType }
106      *     
107      */
108     public SignatureMethodType getSignatureMethod() {
109         return signatureMethod;
110     }
111 
112     /**
113      * Sets the value of the signatureMethod property.
114      * 
115      * @param value
116      *     allowed object is
117      *     {@link SignatureMethodType }
118      *     
119      */
120     public void setSignatureMethod(SignatureMethodType value) {
121         this.signatureMethod = value;
122     }
123 
124     /**
125      * Gets the value of the reference property.
126      * 
127      * <p>
128      * This accessor method returns a reference to the live list,
129      * not a snapshot. Therefore any modification you make to the
130      * returned list will be present inside the JAXB object.
131      * This is why there is not a <CODE>set</CODE> method for the reference property.
132      * 
133      * <p>
134      * For example, to add a new item, do as follows:
135      * <pre>
136      *    getReference().add(newItem);
137      * </pre>
138      * 
139      * 
140      * <p>
141      * Objects of the following type(s) are allowed in the list
142      * {@link ReferenceType }
143      * 
144      * 
145      */
146     public List<ReferenceType> getReference() {
147         if (reference == null) {
148             reference = new ArrayList<ReferenceType>();
149         }
150         return this.reference;
151     }
152 
153     /**
154      * Gets the value of the id property.
155      * 
156      * @return
157      *     possible object is
158      *     {@link String }
159      *     
160      */
161     public String getId() {
162         return id;
163     }
164 
165     /**
166      * Sets the value of the id property.
167      * 
168      * @param value
169      *     allowed object is
170      *     {@link String }
171      *     
172      */
173     public void setId(String value) {
174         this.id = value;
175     }
176 
177 }