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 javax.xml.bind.annotation.XmlAccessType;
22 import javax.xml.bind.annotation.XmlAccessorType;
23 import javax.xml.bind.annotation.XmlAttribute;
24 import javax.xml.bind.annotation.XmlElement;
25 import javax.xml.bind.annotation.XmlID;
26 import javax.xml.bind.annotation.XmlSchemaType;
27 import javax.xml.bind.annotation.XmlType;
28 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
29 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
30
31
32 /**
33 * <p>Java class for ReferenceType complex type.
34 *
35 * <p>The following schema fragment specifies the expected content contained within this class.
36 *
37 * <pre>
38 * <complexType name="ReferenceType">
39 * <complexContent>
40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41 * <sequence>
42 * <element ref="{http://www.w3.org/2000/09/xmldsig#}Transforms" minOccurs="0"/>
43 * <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestMethod"/>
44 * <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestValue"/>
45 * </sequence>
46 * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
47 * <attribute name="URI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
48 * <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
49 * </restriction>
50 * </complexContent>
51 * </complexType>
52 * </pre>
53 *
54 *
55 */
56 @XmlAccessorType(XmlAccessType.FIELD)
57 @XmlType(name = "ReferenceType", propOrder = {
58 "transforms",
59 "digestMethod",
60 "digestValue"
61 })
62 public class ReferenceType {
63
64 @XmlElement(name = "Transforms")
65 protected TransformsType transforms;
66 @XmlElement(name = "DigestMethod", required = true)
67 protected DigestMethodType digestMethod;
68 @XmlElement(name = "DigestValue", required = true)
69 protected byte[] digestValue;
70 @XmlAttribute(name = "Id")
71 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
72 @XmlID
73 @XmlSchemaType(name = "ID")
74 protected String id;
75 @XmlAttribute(name = "URI")
76 @XmlSchemaType(name = "anyURI")
77 protected String uri;
78 @XmlAttribute(name = "Type")
79 @XmlSchemaType(name = "anyURI")
80 protected String type;
81
82 /**
83 * Gets the value of the transforms property.
84 *
85 * @return
86 * possible object is
87 * {@link TransformsType }
88 *
89 */
90 public TransformsType getTransforms() {
91 return transforms;
92 }
93
94 /**
95 * Sets the value of the transforms property.
96 *
97 * @param value
98 * allowed object is
99 * {@link TransformsType }
100 *
101 */
102 public void setTransforms(TransformsType value) {
103 this.transforms = value;
104 }
105
106 /**
107 * Gets the value of the digestMethod property.
108 *
109 * @return
110 * possible object is
111 * {@link DigestMethodType }
112 *
113 */
114 public DigestMethodType getDigestMethod() {
115 return digestMethod;
116 }
117
118 /**
119 * Sets the value of the digestMethod property.
120 *
121 * @param value
122 * allowed object is
123 * {@link DigestMethodType }
124 *
125 */
126 public void setDigestMethod(DigestMethodType value) {
127 this.digestMethod = value;
128 }
129
130 /**
131 * Gets the value of the digestValue property.
132 *
133 * @return
134 * possible object is
135 * byte[]
136 */
137 public byte[] getDigestValue() {
138 return digestValue;
139 }
140
141 /**
142 * Sets the value of the digestValue property.
143 *
144 * @param value
145 * allowed object is
146 * byte[]
147 */
148 public void setDigestValue(byte[] value) {
149 this.digestValue = ((byte[]) value);
150 }
151
152 /**
153 * Gets the value of the id property.
154 *
155 * @return
156 * possible object is
157 * {@link String }
158 *
159 */
160 public String getId() {
161 return id;
162 }
163
164 /**
165 * Sets the value of the id property.
166 *
167 * @param value
168 * allowed object is
169 * {@link String }
170 *
171 */
172 public void setId(String value) {
173 this.id = value;
174 }
175
176 /**
177 * Gets the value of the uri property.
178 *
179 * @return
180 * possible object is
181 * {@link String }
182 *
183 */
184 public String getURI() {
185 return uri;
186 }
187
188 /**
189 * Sets the value of the uri property.
190 *
191 * @param value
192 * allowed object is
193 * {@link String }
194 *
195 */
196 public void setURI(String value) {
197 this.uri = value;
198 }
199
200 /**
201 * Gets the value of the type property.
202 *
203 * @return
204 * possible object is
205 * {@link String }
206 *
207 */
208 public String getType() {
209 return type;
210 }
211
212 /**
213 * Sets the value of the type property.
214 *
215 * @param value
216 * allowed object is
217 * {@link String }
218 *
219 */
220 public void setType(String value) {
221 this.type = value;
222 }
223
224 }