| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| KeyInfoType |
|
| 1.3333333333333333;1.333 |
| 1 | ||
| 2 | package org.kuali.student.security.xmldsig.dto; | |
| 3 | ||
| 4 | import java.util.ArrayList; | |
| 5 | import java.util.List; | |
| 6 | import javax.xml.bind.JAXBElement; | |
| 7 | import javax.xml.bind.annotation.XmlAccessType; | |
| 8 | import javax.xml.bind.annotation.XmlAccessorType; | |
| 9 | import javax.xml.bind.annotation.XmlAnyElement; | |
| 10 | import javax.xml.bind.annotation.XmlAttribute; | |
| 11 | import javax.xml.bind.annotation.XmlElementRef; | |
| 12 | import javax.xml.bind.annotation.XmlElementRefs; | |
| 13 | import javax.xml.bind.annotation.XmlID; | |
| 14 | import javax.xml.bind.annotation.XmlMixed; | |
| 15 | import javax.xml.bind.annotation.XmlSchemaType; | |
| 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 org.w3c.dom.Element; | |
| 20 | ||
| 21 | ||
| 22 | /** | |
| 23 | * <p>Java class for KeyInfoType complex type. | |
| 24 | * | |
| 25 | * <p>The following schema fragment specifies the expected content contained within this class. | |
| 26 | * | |
| 27 | * <pre> | |
| 28 | * <complexType name="KeyInfoType"> | |
| 29 | * <complexContent> | |
| 30 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
| 31 | * <choice maxOccurs="unbounded"> | |
| 32 | * <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyName"/> | |
| 33 | * <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyValue"/> | |
| 34 | * <element ref="{http://www.w3.org/2000/09/xmldsig#}RetrievalMethod"/> | |
| 35 | * <element ref="{http://www.w3.org/2000/09/xmldsig#}X509Data"/> | |
| 36 | * <element ref="{http://www.w3.org/2000/09/xmldsig#}PGPData"/> | |
| 37 | * <element ref="{http://www.w3.org/2000/09/xmldsig#}SPKIData"/> | |
| 38 | * <element ref="{http://www.w3.org/2000/09/xmldsig#}MgmtData"/> | |
| 39 | * <any processContents='lax' namespace='##other'/> | |
| 40 | * </choice> | |
| 41 | * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> | |
| 42 | * </restriction> | |
| 43 | * </complexContent> | |
| 44 | * </complexType> | |
| 45 | * </pre> | |
| 46 | * | |
| 47 | * | |
| 48 | */ | |
| 49 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 50 | @XmlType(name = "KeyInfoType", propOrder = { | |
| 51 | "content" | |
| 52 | }) | |
| 53 | 0 | public class KeyInfoType { |
| 54 | ||
| 55 | @XmlElementRefs({ | |
| 56 | @XmlElementRef(name = "RetrievalMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), | |
| 57 | @XmlElementRef(name = "MgmtData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), | |
| 58 | @XmlElementRef(name = "PGPData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), | |
| 59 | @XmlElementRef(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), | |
| 60 | @XmlElementRef(name = "KeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), | |
| 61 | @XmlElementRef(name = "KeyName", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), | |
| 62 | @XmlElementRef(name = "SPKIData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) | |
| 63 | }) | |
| 64 | @XmlMixed | |
| 65 | @XmlAnyElement(lax = true) | |
| 66 | protected List<Object> content; | |
| 67 | @XmlAttribute(name = "Id") | |
| 68 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | |
| 69 | @XmlID | |
| 70 | @XmlSchemaType(name = "ID") | |
| 71 | protected String id; | |
| 72 | ||
| 73 | /** | |
| 74 | * Gets the value of the content property. | |
| 75 | * | |
| 76 | * <p> | |
| 77 | * This accessor method returns a reference to the live list, | |
| 78 | * not a snapshot. Therefore any modification you make to the | |
| 79 | * returned list will be present inside the JAXB object. | |
| 80 | * This is why there is not a <CODE>set</CODE> method for the content property. | |
| 81 | * | |
| 82 | * <p> | |
| 83 | * For example, to add a new item, do as follows: | |
| 84 | * <pre> | |
| 85 | * getContent().add(newItem); | |
| 86 | * </pre> | |
| 87 | * | |
| 88 | * | |
| 89 | * <p> | |
| 90 | * Objects of the following type(s) are allowed in the list | |
| 91 | * {@link String } | |
| 92 | * {@link JAXBElement }{@code <}{@link RetrievalMethodType }{@code >} | |
| 93 | * {@link JAXBElement }{@code <}{@link String }{@code >} | |
| 94 | * {@link JAXBElement }{@code <}{@link PGPDataType }{@code >} | |
| 95 | * {@link Object } | |
| 96 | * {@link JAXBElement }{@code <}{@link X509DataType }{@code >} | |
| 97 | * {@link Element } | |
| 98 | * {@link JAXBElement }{@code <}{@link KeyValueType }{@code >} | |
| 99 | * {@link JAXBElement }{@code <}{@link String }{@code >} | |
| 100 | * {@link JAXBElement }{@code <}{@link SPKIDataType }{@code >} | |
| 101 | * | |
| 102 | * | |
| 103 | */ | |
| 104 | public List<Object> getContent() { | |
| 105 | 0 | if (content == null) { |
| 106 | 0 | content = new ArrayList<Object>(); |
| 107 | } | |
| 108 | 0 | return this.content; |
| 109 | } | |
| 110 | ||
| 111 | /** | |
| 112 | * Gets the value of the id property. | |
| 113 | * | |
| 114 | * @return | |
| 115 | * possible object is | |
| 116 | * {@link String } | |
| 117 | * | |
| 118 | */ | |
| 119 | public String getId() { | |
| 120 | 0 | return id; |
| 121 | } | |
| 122 | ||
| 123 | /** | |
| 124 | * Sets the value of the id property. | |
| 125 | * | |
| 126 | * @param value | |
| 127 | * allowed object is | |
| 128 | * {@link String } | |
| 129 | * | |
| 130 | */ | |
| 131 | public void setId(String value) { | |
| 132 | 0 | this.id = value; |
| 133 | 0 | } |
| 134 | ||
| 135 | } |