001: package org.w3._2000._09.xmldsig_;
002:
003: import java.util.ArrayList;
004: import java.util.List;
005: import javax.xml.bind.annotation.XmlAccessType;
006: import javax.xml.bind.annotation.XmlAccessorType;
007: import javax.xml.bind.annotation.XmlAttribute;
008: import javax.xml.bind.annotation.XmlElement;
009: import javax.xml.bind.annotation.XmlID;
010: import javax.xml.bind.annotation.XmlSchemaType;
011: import javax.xml.bind.annotation.XmlType;
012: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
013: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
014:
015: /**
016: * <p>Java class for SignedInfoType complex type.
017: *
018: * <p>The following schema fragment specifies the expected content contained within this class.
019: *
020: * <pre>
021: * <complexType name="SignedInfoType">
022: * <complexContent>
023: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
024: * <sequence>
025: * <element ref="{http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod"/>
026: * <element ref="{http://www.w3.org/2000/09/xmldsig#}SignatureMethod"/>
027: * <element ref="{http://www.w3.org/2000/09/xmldsig#}Reference" maxOccurs="unbounded"/>
028: * </sequence>
029: * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
030: * </restriction>
031: * </complexContent>
032: * </complexType>
033: * </pre>
034: *
035: *
036: */
037: @XmlAccessorType(XmlAccessType.FIELD)
038: @XmlType(name="SignedInfoType",propOrder={"canonicalizationMethod","signatureMethod","reference"})
039: public class SignedInfoType {
040:
041: @XmlElement(name="CanonicalizationMethod",required=true)
042: protected CanonicalizationMethodType canonicalizationMethod;
043: @XmlElement(name="SignatureMethod",required=true)
044: protected SignatureMethodType signatureMethod;
045: @XmlElement(name="Reference",required=true)
046: protected List<ReferenceType> reference;
047: @XmlAttribute(name="Id")
048: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
049: @XmlID
050: @XmlSchemaType(name="ID")
051: protected String id;
052:
053: /**
054: * Gets the value of the canonicalizationMethod property.
055: *
056: * @return
057: * possible object is
058: * {@link CanonicalizationMethodType }
059: *
060: */
061: public CanonicalizationMethodType getCanonicalizationMethod() {
062: return canonicalizationMethod;
063: }
064:
065: /**
066: * Sets the value of the canonicalizationMethod property.
067: *
068: * @param value
069: * allowed object is
070: * {@link CanonicalizationMethodType }
071: *
072: */
073: public void setCanonicalizationMethod(
074: CanonicalizationMethodType value) {
075: this .canonicalizationMethod = value;
076: }
077:
078: /**
079: * Gets the value of the signatureMethod property.
080: *
081: * @return
082: * possible object is
083: * {@link SignatureMethodType }
084: *
085: */
086: public SignatureMethodType getSignatureMethod() {
087: return signatureMethod;
088: }
089:
090: /**
091: * Sets the value of the signatureMethod property.
092: *
093: * @param value
094: * allowed object is
095: * {@link SignatureMethodType }
096: *
097: */
098: public void setSignatureMethod(SignatureMethodType value) {
099: this .signatureMethod = value;
100: }
101:
102: /**
103: * Gets the value of the reference property.
104: *
105: * <p>
106: * This accessor method returns a reference to the live list,
107: * not a snapshot. Therefore any modification you make to the
108: * returned list will be present inside the JAXB object.
109: * This is why there is not a <CODE>set</CODE> method for the reference property.
110: *
111: * <p>
112: * For example, to add a new item, do as follows:
113: * <pre>
114: * getReference().add(newItem);
115: * </pre>
116: *
117: *
118: * <p>
119: * Objects of the following type(s) are allowed in the list
120: * {@link ReferenceType }
121: *
122: *
123: */
124: public List<ReferenceType> getReference() {
125: if (reference == null) {
126: reference = new ArrayList<ReferenceType>();
127: }
128: return this .reference;
129: }
130:
131: /**
132: * Gets the value of the id property.
133: *
134: * @return
135: * possible object is
136: * {@link String }
137: *
138: */
139: public String getId() {
140: return id;
141: }
142:
143: /**
144: * Sets the value of the id property.
145: *
146: * @param value
147: * allowed object is
148: * {@link String }
149: *
150: */
151: public void setId(String value) {
152: this.id = value;
153: }
154:
155: }
|