001: /*
002: * The contents of this file are subject to the terms
003: * of the Common Development and Distribution License
004: * (the License). You may not use this file except in
005: * compliance with the License.
006: *
007: * You can obtain a copy of the license at
008: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
009: * See the License for the specific language governing
010: * permissions and limitations under the License.
011: *
012: * When distributing Covered Code, include this CDDL
013: * Header Notice in each file and include the License file
014: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
015: * If applicable, add the following below the CDDL Header,
016: * with the fields enclosed by brackets [] replaced by
017: * you own identifying information:
018: * "Portions Copyrighted [year] [name of copyright owner]"
019: *
020: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
021: */
022:
023: //
024: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b24-ea3
025: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
026: // Any modifications to this file will be lost upon recompilation of the source schema.
027: // Generated on: 2006.01.20 at 03:59:03 PM IST
028: //
029:
030: package com.sun.xml.security.core.dsig;
031:
032: import com.sun.xml.ws.security.opt.crypto.dsig.DigestMethod;
033: import javax.xml.bind.annotation.XmlAccessType;
034: import javax.xml.bind.annotation.XmlAccessorType;
035: import javax.xml.bind.annotation.XmlAttribute;
036: import javax.xml.bind.annotation.XmlElement;
037: import javax.xml.bind.annotation.XmlID;
038: import javax.xml.bind.annotation.XmlRootElement;
039: import javax.xml.bind.annotation.XmlType;
040: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
041: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
042: import com.sun.xml.ws.security.opt.crypto.dsig.Transforms;
043:
044: /**
045: * <p>Java class for ReferenceType complex type.
046: *
047: * <p>The following schema fragment specifies the expected content contained within this class.
048: *
049: * <pre>
050: * <complexType name="ReferenceType">
051: * <complexContent>
052: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
053: * <sequence>
054: * <element ref="{http://www.w3.org/2000/09/xmldsig#}Transforms" minOccurs="0"/>
055: * <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestMethod"/>
056: * <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestValue"/>
057: * </sequence>
058: * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
059: * <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
060: * <attribute name="URI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
061: * </restriction>
062: * </complexContent>
063: * </complexType>
064: * </pre>
065: *
066: *
067: */
068: @XmlRootElement(name="ReferenceType")
069: @XmlAccessorType(XmlAccessType.FIELD)
070: @XmlType(name="ReferenceType",propOrder={"transforms","digestMethod","digestValue"})
071: public class ReferenceType {
072:
073: @XmlElement(name="Transforms",namespace="http://www.w3.org/2000/09/xmldsig#",type=com.sun.xml.ws.security.opt.crypto.dsig.Transforms.class)
074: protected Transforms transforms;
075: @XmlElement(name="DigestMethod",namespace="http://www.w3.org/2000/09/xmldsig#",type=com.sun.xml.ws.security.opt.crypto.dsig.DigestMethod.class)
076: protected DigestMethod digestMethod;
077: @XmlElement(name="DigestValue",namespace="http://www.w3.org/2000/09/xmldsig#")
078: protected byte[] digestValue;
079: @XmlAttribute(name="Id")
080: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
081: @XmlID
082: protected String id;
083: @XmlAttribute(name="Type")
084: protected String type;
085: @XmlAttribute(name="URI")
086: protected String uri;
087:
088: /**
089: * Gets the value of the transforms property.
090: *
091: * @return
092: * possible object is
093: * {@link TransformsType }
094: *
095: */
096: /*public TransformsType getTransforms() {
097: return transforms;
098: }*/
099:
100: /**
101: * Sets the value of the transforms property.
102: *
103: * @param value
104: * allowed object is
105: * {@link TransformsType }
106: *
107: */
108: public void setTransforms(Transforms value) {
109: this .transforms = value;
110: }
111:
112: /**
113: * Gets the value of the digestMethod property.
114: *
115: * @return
116: * possible object is
117: * {@link DigestMethodType }
118: *
119: */
120: public DigestMethodType getDigestMethod() {
121: return digestMethod;
122: }
123:
124: /**
125: * Sets the value of the digestMethod property.
126: *
127: * @param value
128: * allowed object is
129: * {@link DigestMethodType }
130: *
131: */
132: public void setDigestMethod(DigestMethod value) {
133: this .digestMethod = value;
134: }
135:
136: /**
137: * Gets the value of the digestValue property.
138: *
139: * @return
140: * possible object is
141: * byte[]
142: */
143: public byte[] getDigestValue() {
144: return digestValue;
145: }
146:
147: /**
148: * Sets the value of the digestValue property.
149: *
150: * @param value
151: * allowed object is
152: * byte[]
153: */
154: public void setDigestValue(byte[] value) {
155: this .digestValue = ((byte[]) value);
156: }
157:
158: /**
159: * Gets the value of the id property.
160: *
161: * @return
162: * possible object is
163: * {@link String }
164: *
165: */
166: public String getId() {
167: return id;
168: }
169:
170: /**
171: * Sets the value of the id property.
172: *
173: * @param value
174: * allowed object is
175: * {@link String }
176: *
177: */
178: public void setId(String value) {
179: this .id = value;
180: }
181:
182: /**
183: * Gets the value of the type property.
184: *
185: * @return
186: * possible object is
187: * {@link String }
188: *
189: */
190: public String getType() {
191: return type;
192: }
193:
194: /**
195: * Sets the value of the type property.
196: *
197: * @param value
198: * allowed object is
199: * {@link String }
200: *
201: */
202: public void setType(String value) {
203: this .type = value;
204: }
205:
206: /**
207: * Gets the value of the uri property.
208: *
209: * @return
210: * possible object is
211: * {@link String }
212: *
213: */
214: public String getURI() {
215: return uri;
216: }
217:
218: /**
219: * Sets the value of the uri property.
220: *
221: * @param value
222: * allowed object is
223: * {@link String }
224: *
225: */
226: public void setURI(String value) {
227: this.uri = value;
228: }
229:
230: }
|