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 | * <complexType name="SignedInfoType"> |
||
| 22 | * <complexContent> |
||
| 23 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
||
| 24 | * <sequence> |
||
| 25 | * <element name="CanonicalizationMethod"> |
||
| 26 | * <complexType> |
||
| 27 | * <complexContent> |
||
| 28 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
||
| 29 | * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> |
||
| 30 | * </restriction> |
||
| 31 | * </complexContent> |
||
| 32 | * </complexType> |
||
| 33 | * </element> |
||
| 34 | * <element name="SignatureMethod"> |
||
| 35 | * <complexType> |
||
| 36 | * <complexContent> |
||
| 37 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
||
| 38 | * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> |
||
| 39 | * </restriction> |
||
| 40 | * </complexContent> |
||
| 41 | * </complexType> |
||
| 42 | * </element> |
||
| 43 | * <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/> |
||
| 44 | * </sequence> |
||
| 45 | * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> |
||
| 46 | * </restriction> |
||
| 47 | * </complexContent> |
||
| 48 | * </complexType> |
||
| 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 | * <complexType> |
||
| 177 | * <complexContent> |
||
| 178 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
||
| 179 | * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> |
||
| 180 | * </restriction> |
||
| 181 | * </complexContent> |
||
| 182 | * </complexType> |
||
| 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 | * <complexType> |
||
| 233 | * <complexContent> |
||
| 234 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
||
| 235 | * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> |
||
| 236 | * </restriction> |
||
| 237 | * </complexContent> |
||
| 238 | * </complexType> |
||
| 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 | } |