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.JAXBElement; 14 import javax.xml.bind.annotation.XmlAccessType; 15 import javax.xml.bind.annotation.XmlAccessorType; 16 import javax.xml.bind.annotation.XmlAnyElement; 17 import javax.xml.bind.annotation.XmlAttribute; 18 import javax.xml.bind.annotation.XmlElementRef; 19 import javax.xml.bind.annotation.XmlElementRefs; 20 import javax.xml.bind.annotation.XmlID; 21 import javax.xml.bind.annotation.XmlMixed; 22 import javax.xml.bind.annotation.XmlType; 23 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 24 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 25 import com.sun.xml.dsig.core.KeyInfoType; 26 import com.sun.xml.dsig.core.KeyValueType; 27 import com.sun.xml.dsig.core.PGPDataType; 28 import com.sun.xml.dsig.core.RetrievalMethodType; 29 import com.sun.xml.dsig.core.SPKIDataType; 30 import com.sun.xml.dsig.core.X509DataType; 31 import org.w3c.dom.Element ; 32 33 34 61 @XmlAccessorType(XmlAccessType.FIELD) 62 @XmlType(name = "KeyInfoType", propOrder = { 63 "content" 64 }) 65 public class KeyInfoType { 66 67 @XmlElementRefs({ 68 @XmlElementRef(name = "SPKIData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 69 @XmlElementRef(name = "PGPData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 70 @XmlElementRef(name = "KeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 71 @XmlElementRef(name = "KeyName", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 72 @XmlElementRef(name = "RetrievalMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 73 @XmlElementRef(name = "MgmtData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 74 @XmlElementRef(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) 75 }) 76 @XmlMixed 77 @XmlAnyElement(lax = true) 78 protected List <Object > content; 79 @XmlAttribute(name = "Id") 80 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 81 @XmlID 82 protected String id; 83 84 115 public List <Object > getContent() { 116 if (content == null) { 117 content = new ArrayList <Object >(); 118 } 119 return this.content; 120 } 121 122 130 public String getId() { 131 return id; 132 } 133 134 142 public void setId(String value) { 143 this.id = value; 144 } 145 146 } 147 | Popular Tags |