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