Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
SignatureMethodType |
|
| 1.3333333333333333;1.333 |
1 | ||
2 | package org.kuali.student.security.xmldsig.dto; | |
3 | ||
4 | import java.math.BigInteger; | |
5 | import java.util.ArrayList; | |
6 | import java.util.List; | |
7 | import javax.xml.bind.JAXBElement; | |
8 | import javax.xml.bind.annotation.XmlAccessType; | |
9 | import javax.xml.bind.annotation.XmlAccessorType; | |
10 | import javax.xml.bind.annotation.XmlAnyElement; | |
11 | import javax.xml.bind.annotation.XmlAttribute; | |
12 | import javax.xml.bind.annotation.XmlElementRef; | |
13 | import javax.xml.bind.annotation.XmlMixed; | |
14 | import javax.xml.bind.annotation.XmlSchemaType; | |
15 | import javax.xml.bind.annotation.XmlType; | |
16 | ||
17 | ||
18 | /** | |
19 | * <p>Java class for SignatureMethodType complex type. | |
20 | * | |
21 | * <p>The following schema fragment specifies the expected content contained within this class. | |
22 | * | |
23 | * <pre> | |
24 | * <complexType name="SignatureMethodType"> | |
25 | * <complexContent> | |
26 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
27 | * <sequence> | |
28 | * <element name="HMACOutputLength" type="{http://www.w3.org/2000/09/xmldsig#}HMACOutputLengthType" minOccurs="0"/> | |
29 | * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/> | |
30 | * </sequence> | |
31 | * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> | |
32 | * </restriction> | |
33 | * </complexContent> | |
34 | * </complexType> | |
35 | * </pre> | |
36 | * | |
37 | * | |
38 | */ | |
39 | @XmlAccessorType(XmlAccessType.FIELD) | |
40 | @XmlType(name = "SignatureMethodType", propOrder = { | |
41 | "content" | |
42 | }) | |
43 | 0 | public class SignatureMethodType { |
44 | ||
45 | @XmlElementRef(name = "HMACOutputLength", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) | |
46 | @XmlMixed | |
47 | @XmlAnyElement(lax = true) | |
48 | protected List<Object> content; | |
49 | @XmlAttribute(name = "Algorithm", required = true) | |
50 | @XmlSchemaType(name = "anyURI") | |
51 | protected String algorithm; | |
52 | ||
53 | /** | |
54 | * Gets the value of the content property. | |
55 | * | |
56 | * <p> | |
57 | * This accessor method returns a reference to the live list, | |
58 | * not a snapshot. Therefore any modification you make to the | |
59 | * returned list will be present inside the JAXB object. | |
60 | * This is why there is not a <CODE>set</CODE> method for the content property. | |
61 | * | |
62 | * <p> | |
63 | * For example, to add a new item, do as follows: | |
64 | * <pre> | |
65 | * getContent().add(newItem); | |
66 | * </pre> | |
67 | * | |
68 | * | |
69 | * <p> | |
70 | * Objects of the following type(s) are allowed in the list | |
71 | * {@link Object } | |
72 | * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} | |
73 | * {@link String } | |
74 | * | |
75 | * | |
76 | */ | |
77 | public List<Object> getContent() { | |
78 | 0 | if (content == null) { |
79 | 0 | content = new ArrayList<Object>(); |
80 | } | |
81 | 0 | return this.content; |
82 | } | |
83 | ||
84 | /** | |
85 | * Gets the value of the algorithm property. | |
86 | * | |
87 | * @return | |
88 | * possible object is | |
89 | * {@link String } | |
90 | * | |
91 | */ | |
92 | public String getAlgorithm() { | |
93 | 0 | return algorithm; |
94 | } | |
95 | ||
96 | /** | |
97 | * Sets the value of the algorithm property. | |
98 | * | |
99 | * @param value | |
100 | * allowed object is | |
101 | * {@link String } | |
102 | * | |
103 | */ | |
104 | public void setAlgorithm(String value) { | |
105 | 0 | this.algorithm = value; |
106 | 0 | } |
107 | ||
108 | } |