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.CanonicalizationMethod;
033: import java.util.ArrayList;
034: import java.util.List;
035: import javax.xml.bind.annotation.XmlAccessType;
036: import javax.xml.bind.annotation.XmlAccessorType;
037: import javax.xml.bind.annotation.XmlAttribute;
038: import javax.xml.bind.annotation.XmlElement;
039: import javax.xml.bind.annotation.XmlID;
040: import javax.xml.bind.annotation.XmlRootElement;
041: import javax.xml.bind.annotation.XmlType;
042: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
043: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
044: import com.sun.xml.ws.security.opt.crypto.dsig.SignatureMethod;
045: import com.sun.xml.ws.security.opt.crypto.dsig.Reference;
046:
047: /**
048: * <p>Java class for SignedInfoType complex type.
049: *
050: * <p>The following schema fragment specifies the expected content contained within this class.
051: *
052: * <pre>
053: * <complexType name="SignedInfoType">
054: * <complexContent>
055: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
056: * <sequence>
057: * <element ref="{http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod"/>
058: * <element ref="{http://www.w3.org/2000/09/xmldsig#}SignatureMethod"/>
059: * <element ref="{http://www.w3.org/2000/09/xmldsig#}Reference" maxOccurs="unbounded"/>
060: * </sequence>
061: * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
062: * </restriction>
063: * </complexContent>
064: * </complexType>
065: * </pre>
066: *
067: *
068: */
069: @XmlRootElement(name="SignedInfoType")
070: @XmlAccessorType(XmlAccessType.FIELD)
071: @XmlType(name="SignedInfoType",propOrder={"canonicalizationMethod","signatureMethod","reference"})
072: public class SignedInfoType {
073:
074: @XmlElement(name="CanonicalizationMethod",namespace="http://www.w3.org/2000/09/xmldsig#",type=com.sun.xml.ws.security.opt.crypto.dsig.CanonicalizationMethod.class)
075: protected CanonicalizationMethod canonicalizationMethod;
076: @XmlElement(name="SignatureMethod",namespace="http://www.w3.org/2000/09/xmldsig#",type=com.sun.xml.ws.security.opt.crypto.dsig.SignatureMethod.class)
077: protected SignatureMethod signatureMethod;
078: @XmlElement(name="Reference",namespace="http://www.w3.org/2000/09/xmldsig#",type=com.sun.xml.ws.security.opt.crypto.dsig.Reference.class)
079: protected List<Reference> reference;
080: @XmlAttribute(name="Id")
081: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
082: @XmlID
083: protected String id;
084:
085: /**
086: * Gets the value of the canonicalizationMethod property.
087: *
088: * @return
089: * possible object is
090: * {@link CanonicalizationMethodType }
091: *
092: */
093: public CanonicalizationMethod getCanonicalizationMethod() {
094: return canonicalizationMethod;
095: }
096:
097: /**
098: * Sets the value of the canonicalizationMethod property.
099: *
100: * @param value
101: * allowed object is
102: * {@link CanonicalizationMethodType }
103: *
104: */
105: public void setCanonicalizationMethod(CanonicalizationMethod value) {
106: this .canonicalizationMethod = value;
107: }
108:
109: /**
110: * Gets the value of the signatureMethod property.
111: *
112: * @return
113: * possible object is
114: * {@link SignatureMethodType }
115: *
116: */
117: /*public SignatureMethodType getSignatureMethod() {
118: return signatureMethod;
119: }*/
120:
121: /**
122: * Sets the value of the signatureMethod property.
123: *
124: * @param value
125: * allowed object is
126: * {@link SignatureMethodType }
127: *
128: */
129: public void setSignatureMethod(SignatureMethod value) {
130: this .signatureMethod = value;
131: }
132:
133: /**
134: * Gets the value of the reference property.
135: *
136: * <p>
137: * This accessor method returns a reference to the live list,
138: * not a snapshot. Therefore any modification you make to the
139: * returned list will be present inside the JAXB object.
140: * This is why there is not a <CODE>set</CODE> method for the reference property.
141: *
142: * <p>
143: * For example, to add a new item, do as follows:
144: * <pre>
145: * getReference().add(newItem);
146: * </pre>
147: *
148: *
149: * <p>
150: * Objects of the following type(s) are allowed in the list
151: * {@link ReferenceType }
152: *
153: *
154: */
155: public List<Reference> getReference() {
156: if (reference == null) {
157: reference = new ArrayList<Reference>();
158: }
159: return this .reference;
160: }
161:
162: /**
163: * Gets the value of the id property.
164: *
165: * @return
166: * possible object is
167: * {@link String }
168: *
169: */
170: public String getId() {
171: return id;
172: }
173:
174: /**
175: * Sets the value of the id property.
176: *
177: * @param value
178: * allowed object is
179: * {@link String }
180: *
181: */
182: public void setId(String value) {
183: this.id = value;
184: }
185:
186: }
|