1 8 9 package com.sun.xml.dsig.core; 10 11 import java.util.ArrayList ; 12 import java.util.List ; 13 import javax.xml.bind.annotation.XmlAccessType; 14 import javax.xml.bind.annotation.XmlAccessorType; 15 import javax.xml.bind.annotation.XmlAttribute; 16 import javax.xml.bind.annotation.XmlElement; 17 import javax.xml.bind.annotation.XmlID; 18 import javax.xml.bind.annotation.XmlType; 19 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 20 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 21 import com.sun.xml.dsig.core.CanonicalizationMethodType; 22 import com.sun.xml.dsig.core.ReferenceType; 23 import com.sun.xml.dsig.core.SignatureMethodType; 24 import com.sun.xml.dsig.core.SignedInfoType; 25 26 27 49 @XmlAccessorType(XmlAccessType.FIELD) 50 @XmlType(name = "SignedInfoType", propOrder = { 51 "canonicalizationMethod", 52 "signatureMethod", 53 "reference" 54 }) 55 public class SignedInfoType { 56 57 @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#") 58 protected CanonicalizationMethodType canonicalizationMethod; 59 @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#") 60 protected SignatureMethodType signatureMethod; 61 @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#") 62 protected List <ReferenceType> reference; 63 @XmlAttribute(name = "Id") 64 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 65 @XmlID 66 protected String id; 67 68 76 public CanonicalizationMethodType getCanonicalizationMethod() { 77 return canonicalizationMethod; 78 } 79 80 88 public void setCanonicalizationMethod(CanonicalizationMethodType value) { 89 this.canonicalizationMethod = value; 90 } 91 92 100 public SignatureMethodType getSignatureMethod() { 101 return signatureMethod; 102 } 103 104 112 public void setSignatureMethod(SignatureMethodType value) { 113 this.signatureMethod = value; 114 } 115 116 138 public List <ReferenceType> getReference() { 139 if (reference == null) { 140 reference = new ArrayList <ReferenceType>(); 141 } 142 return this.reference; 143 } 144 145 153 public String getId() { 154 return id; 155 } 156 157 165 public void setId(String value) { 166 this.id = value; 167 } 168 169 } 170 | Popular Tags |