Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
695 blopes 1
 
2
package br.com.swconsultoria.nfe.schema.retEnvConfRecebto;
3
 
4
import javax.xml.bind.annotation.XmlAccessType;
5
import javax.xml.bind.annotation.XmlAccessorType;
6
import javax.xml.bind.annotation.XmlAttribute;
7
import javax.xml.bind.annotation.XmlElement;
8
import javax.xml.bind.annotation.XmlID;
9
import javax.xml.bind.annotation.XmlSchemaType;
10
import javax.xml.bind.annotation.XmlType;
11
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
12
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
13
 
14
 
15
/**
16
 * <p>Classe Java de SignedInfoType complex type.
17
 *
18
 * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
19
 *
20
 * <pre>
21
 * &lt;complexType name="SignedInfoType"&gt;
22
 *   &lt;complexContent&gt;
23
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
24
 *       &lt;sequence&gt;
25
 *         &lt;element name="CanonicalizationMethod"&gt;
26
 *           &lt;complexType&gt;
27
 *             &lt;complexContent&gt;
28
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
29
 *                 &lt;attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /&gt;
30
 *               &lt;/restriction&gt;
31
 *             &lt;/complexContent&gt;
32
 *           &lt;/complexType&gt;
33
 *         &lt;/element&gt;
34
 *         &lt;element name="SignatureMethod"&gt;
35
 *           &lt;complexType&gt;
36
 *             &lt;complexContent&gt;
37
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
38
 *                 &lt;attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /&gt;
39
 *               &lt;/restriction&gt;
40
 *             &lt;/complexContent&gt;
41
 *           &lt;/complexType&gt;
42
 *         &lt;/element&gt;
43
 *         &lt;element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/&gt;
44
 *       &lt;/sequence&gt;
45
 *       &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /&gt;
46
 *     &lt;/restriction&gt;
47
 *   &lt;/complexContent&gt;
48
 * &lt;/complexType&gt;
49
 * </pre>
50
 *
51
 *
52
 */
53
@XmlAccessorType(XmlAccessType.FIELD)
54
@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = {
55
    "canonicalizationMethod",
56
    "signatureMethod",
57
    "reference"
58
})
59
public class SignedInfoType {
60
 
61
    @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
62
    protected SignedInfoType.CanonicalizationMethod canonicalizationMethod;
63
    @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
64
    protected SignedInfoType.SignatureMethod signatureMethod;
65
    @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
66
    protected ReferenceType reference;
67
    @XmlAttribute(name = "Id")
68
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
69
    @XmlID
70
    @XmlSchemaType(name = "ID")
71
    protected String id;
72
 
73
    /**
74
     * Obtém o valor da propriedade canonicalizationMethod.
75
     *
76
     * @return
77
     *     possible object is
78
     *     {@link SignedInfoType.CanonicalizationMethod }
79
     *    
80
     */
81
    public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() {
82
        return canonicalizationMethod;
83
    }
84
 
85
    /**
86
     * Define o valor da propriedade canonicalizationMethod.
87
     *
88
     * @param value
89
     *     allowed object is
90
     *     {@link SignedInfoType.CanonicalizationMethod }
91
     *    
92
     */
93
    public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) {
94
        this.canonicalizationMethod = value;
95
    }
96
 
97
    /**
98
     * Obtém o valor da propriedade signatureMethod.
99
     *
100
     * @return
101
     *     possible object is
102
     *     {@link SignedInfoType.SignatureMethod }
103
     *    
104
     */
105
    public SignedInfoType.SignatureMethod getSignatureMethod() {
106
        return signatureMethod;
107
    }
108
 
109
    /**
110
     * Define o valor da propriedade signatureMethod.
111
     *
112
     * @param value
113
     *     allowed object is
114
     *     {@link SignedInfoType.SignatureMethod }
115
     *    
116
     */
117
    public void setSignatureMethod(SignedInfoType.SignatureMethod value) {
118
        this.signatureMethod = value;
119
    }
120
 
121
    /**
122
     * Obtém o valor da propriedade reference.
123
     *
124
     * @return
125
     *     possible object is
126
     *     {@link ReferenceType }
127
     *    
128
     */
129
    public ReferenceType getReference() {
130
        return reference;
131
    }
132
 
133
    /**
134
     * Define o valor da propriedade reference.
135
     *
136
     * @param value
137
     *     allowed object is
138
     *     {@link ReferenceType }
139
     *    
140
     */
141
    public void setReference(ReferenceType value) {
142
        this.reference = value;
143
    }
144
 
145
    /**
146
     * Obtém o valor da propriedade id.
147
     *
148
     * @return
149
     *     possible object is
150
     *     {@link String }
151
     *    
152
     */
153
    public String getId() {
154
        return id;
155
    }
156
 
157
    /**
158
     * Define o valor da propriedade id.
159
     *
160
     * @param value
161
     *     allowed object is
162
     *     {@link String }
163
     *    
164
     */
165
    public void setId(String value) {
166
        this.id = value;
167
    }
168
 
169
 
170
    /**
171
     * <p>Classe Java de anonymous complex type.
172
     *
173
     * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
174
     *
175
     * <pre>
176
     * &lt;complexType&gt;
177
     *   &lt;complexContent&gt;
178
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
179
     *       &lt;attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /&gt;
180
     *     &lt;/restriction&gt;
181
     *   &lt;/complexContent&gt;
182
     * &lt;/complexType&gt;
183
     * </pre>
184
     *
185
     *
186
     */
187
    @XmlAccessorType(XmlAccessType.FIELD)
188
    @XmlType(name = "")
189
    public static class CanonicalizationMethod {
190
 
191
        @XmlAttribute(name = "Algorithm", required = true)
192
        @XmlSchemaType(name = "anyURI")
193
        protected String algorithm;
194
 
195
        /**
196
         * Obtém o valor da propriedade algorithm.
197
         *
198
         * @return
199
         *     possible object is
200
         *     {@link String }
201
         *    
202
         */
203
        public String getAlgorithm() {
204
            if (algorithm == null) {
205
                return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315";
206
            } else {
207
                return algorithm;
208
            }
209
        }
210
 
211
        /**
212
         * Define o valor da propriedade algorithm.
213
         *
214
         * @param value
215
         *     allowed object is
216
         *     {@link String }
217
         *    
218
         */
219
        public void setAlgorithm(String value) {
220
            this.algorithm = value;
221
        }
222
 
223
    }
224
 
225
 
226
    /**
227
     * <p>Classe Java de anonymous complex type.
228
     *
229
     * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
230
     *
231
     * <pre>
232
     * &lt;complexType&gt;
233
     *   &lt;complexContent&gt;
234
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
235
     *       &lt;attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /&gt;
236
     *     &lt;/restriction&gt;
237
     *   &lt;/complexContent&gt;
238
     * &lt;/complexType&gt;
239
     * </pre>
240
     *
241
     *
242
     */
243
    @XmlAccessorType(XmlAccessType.FIELD)
244
    @XmlType(name = "")
245
    public static class SignatureMethod {
246
 
247
        @XmlAttribute(name = "Algorithm", required = true)
248
        @XmlSchemaType(name = "anyURI")
249
        protected String algorithm;
250
 
251
        /**
252
         * Obtém o valor da propriedade algorithm.
253
         *
254
         * @return
255
         *     possible object is
256
         *     {@link String }
257
         *    
258
         */
259
        public String getAlgorithm() {
260
            if (algorithm == null) {
261
                return "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
262
            } else {
263
                return algorithm;
264
            }
265
        }
266
 
267
        /**
268
         * Define o valor da propriedade algorithm.
269
         *
270
         * @param value
271
         *     allowed object is
272
         *     {@link String }
273
         *    
274
         */
275
        public void setAlgorithm(String value) {
276
            this.algorithm = value;
277
        }
278
 
279
    }
280
 
281
}