| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| SignedInfoType | 
 | 
 | 1.1428571428571428;1.143 | 
| 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.annotation.XmlAccessType; | |
| 7 |  import javax.xml.bind.annotation.XmlAccessorType; | |
| 8 |  import javax.xml.bind.annotation.XmlAttribute; | |
| 9 |  import javax.xml.bind.annotation.XmlElement; | |
| 10 |  import javax.xml.bind.annotation.XmlID; | |
| 11 |  import javax.xml.bind.annotation.XmlSchemaType; | |
| 12 |  import javax.xml.bind.annotation.XmlType; | |
| 13 |  import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | |
| 14 |  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
| 15 | ||
| 16 | ||
| 17 |  /** | |
| 18 |   * <p>Java class for SignedInfoType complex type. | |
| 19 |   *  | |
| 20 |   * <p>The following schema fragment specifies the expected content contained within this class. | |
| 21 |   *  | |
| 22 |   * <pre> | |
| 23 |   * <complexType name="SignedInfoType"> | |
| 24 |   *   <complexContent> | |
| 25 |   *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
| 26 |   *       <sequence> | |
| 27 |   *         <element ref="{http://www.w3.org/2000/09/xmldsig#}CanonicalizationMethod"/> | |
| 28 |   *         <element ref="{http://www.w3.org/2000/09/xmldsig#}SignatureMethod"/> | |
| 29 |   *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Reference" maxOccurs="unbounded"/> | |
| 30 |   *       </sequence> | |
| 31 |   *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> | |
| 32 |   *     </restriction> | |
| 33 |   *   </complexContent> | |
| 34 |   * </complexType> | |
| 35 |   * </pre> | |
| 36 |   *  | |
| 37 |   *  | |
| 38 |   */ | |
| 39 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 40 |  @XmlType(name = "SignedInfoType", propOrder = { | |
| 41 |      "canonicalizationMethod", | |
| 42 |      "signatureMethod", | |
| 43 |      "reference" | |
| 44 | }) | |
| 45 | 0 |  public class SignedInfoType { | 
| 46 | ||
| 47 | @XmlElement(name = "CanonicalizationMethod", required = true) | |
| 48 |      protected CanonicalizationMethodType canonicalizationMethod; | |
| 49 | @XmlElement(name = "SignatureMethod", required = true) | |
| 50 |      protected SignatureMethodType signatureMethod; | |
| 51 | @XmlElement(name = "Reference", required = true) | |
| 52 |      protected List<ReferenceType> reference; | |
| 53 |      @XmlAttribute(name = "Id") | |
| 54 |      @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | |
| 55 | @XmlID | |
| 56 |      @XmlSchemaType(name = "ID") | |
| 57 |      protected String id; | |
| 58 | ||
| 59 |      /** | |
| 60 |       * Gets the value of the canonicalizationMethod property. | |
| 61 |       *  | |
| 62 |       * @return | |
| 63 |       *     possible object is | |
| 64 |       *     {@link CanonicalizationMethodType } | |
| 65 |       *      | |
| 66 |       */ | |
| 67 |      public CanonicalizationMethodType getCanonicalizationMethod() { | |
| 68 | 0 |          return canonicalizationMethod; | 
| 69 | } | |
| 70 | ||
| 71 |      /** | |
| 72 |       * Sets the value of the canonicalizationMethod property. | |
| 73 |       *  | |
| 74 |       * @param value | |
| 75 |       *     allowed object is | |
| 76 |       *     {@link CanonicalizationMethodType } | |
| 77 |       *      | |
| 78 |       */ | |
| 79 | public void setCanonicalizationMethod(CanonicalizationMethodType value) { | |
| 80 | 0 |          this.canonicalizationMethod = value; | 
| 81 | 0 |      } | 
| 82 | ||
| 83 |      /** | |
| 84 |       * Gets the value of the signatureMethod property. | |
| 85 |       *  | |
| 86 |       * @return | |
| 87 |       *     possible object is | |
| 88 |       *     {@link SignatureMethodType } | |
| 89 |       *      | |
| 90 |       */ | |
| 91 |      public SignatureMethodType getSignatureMethod() { | |
| 92 | 0 |          return signatureMethod; | 
| 93 | } | |
| 94 | ||
| 95 |      /** | |
| 96 |       * Sets the value of the signatureMethod property. | |
| 97 |       *  | |
| 98 |       * @param value | |
| 99 |       *     allowed object is | |
| 100 |       *     {@link SignatureMethodType } | |
| 101 |       *      | |
| 102 |       */ | |
| 103 | public void setSignatureMethod(SignatureMethodType value) { | |
| 104 | 0 |          this.signatureMethod = value; | 
| 105 | 0 |      } | 
| 106 | ||
| 107 |      /** | |
| 108 |       * Gets the value of the reference property. | |
| 109 |       *  | |
| 110 |       * <p> | |
| 111 |       * This accessor method returns a reference to the live list, | |
| 112 |       * not a snapshot. Therefore any modification you make to the | |
| 113 |       * returned list will be present inside the JAXB object. | |
| 114 |       * This is why there is not a <CODE>set</CODE> method for the reference property. | |
| 115 |       *  | |
| 116 |       * <p> | |
| 117 |       * For example, to add a new item, do as follows: | |
| 118 |       * <pre> | |
| 119 |       *    getReference().add(newItem); | |
| 120 |       * </pre> | |
| 121 |       *  | |
| 122 |       *  | |
| 123 |       * <p> | |
| 124 |       * Objects of the following type(s) are allowed in the list | |
| 125 |       * {@link ReferenceType } | |
| 126 |       *  | |
| 127 |       *  | |
| 128 |       */ | |
| 129 |      public List<ReferenceType> getReference() { | |
| 130 | 0 |          if (reference == null) { | 
| 131 | 0 |              reference = new ArrayList<ReferenceType>(); | 
| 132 | } | |
| 133 | 0 |          return this.reference; | 
| 134 | } | |
| 135 | ||
| 136 |      /** | |
| 137 |       * Gets the value of the id property. | |
| 138 |       *  | |
| 139 |       * @return | |
| 140 |       *     possible object is | |
| 141 |       *     {@link String } | |
| 142 |       *      | |
| 143 |       */ | |
| 144 |      public String getId() { | |
| 145 | 0 |          return id; | 
| 146 | } | |
| 147 | ||
| 148 |      /** | |
| 149 |       * Sets the value of the id property. | |
| 150 |       *  | |
| 151 |       * @param value | |
| 152 |       *     allowed object is | |
| 153 |       *     {@link String } | |
| 154 |       *      | |
| 155 |       */ | |
| 156 | public void setId(String value) { | |
| 157 | 0 |          this.id = value; | 
| 158 | 0 |      } | 
| 159 | ||
| 160 | } |