1 8 9 package com.sun.xml.dsig.core; 10 11 import javax.xml.bind.annotation.XmlAccessType; 12 import javax.xml.bind.annotation.XmlAccessorType; 13 import javax.xml.bind.annotation.XmlAttribute; 14 import javax.xml.bind.annotation.XmlElement; 15 import javax.xml.bind.annotation.XmlID; 16 import javax.xml.bind.annotation.XmlType; 17 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 18 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 19 import com.sun.xml.dsig.core.DigestMethodType; 20 import com.sun.xml.dsig.core.ReferenceType; 21 import com.sun.xml.dsig.core.TransformsType; 22 23 24 48 @XmlAccessorType(XmlAccessType.FIELD) 49 @XmlType(name = "ReferenceType", propOrder = { 50 "transforms", 51 "digestMethod", 52 "digestValue" 53 }) 54 public class ReferenceType { 55 56 @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#") 57 protected TransformsType transforms; 58 @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#") 59 protected DigestMethodType digestMethod; 60 @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#") 61 protected byte[] digestValue; 62 @XmlAttribute(name = "Id") 63 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 64 @XmlID 65 protected String id; 66 @XmlAttribute(name = "Type") 67 protected String type; 68 @XmlAttribute(name = "URI") 69 protected String uri; 70 71 79 public TransformsType getTransforms() { 80 return transforms; 81 } 82 83 91 public void setTransforms(TransformsType value) { 92 this.transforms = value; 93 } 94 95 103 public DigestMethodType getDigestMethod() { 104 return digestMethod; 105 } 106 107 115 public void setDigestMethod(DigestMethodType value) { 116 this.digestMethod = value; 117 } 118 119 126 public byte[] getDigestValue() { 127 return digestValue; 128 } 129 130 137 public void setDigestValue(byte[] value) { 138 this.digestValue = ((byte[]) value); 139 } 140 141 149 public String getId() { 150 return id; 151 } 152 153 161 public void setId(String value) { 162 this.id = value; 163 } 164 165 173 public String getType() { 174 return type; 175 } 176 177 185 public void setType(String value) { 186 this.type = value; 187 } 188 189 197 public String getURI() { 198 return uri; 199 } 200 201 209 public void setURI(String value) { 210 this.uri = value; 211 } 212 213 } 214 | Popular Tags |