1 /*
2 * Copyright 2001-2008 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18
19 package org.w3._2000._09.xmldsig_;
20
21 import java.math.BigInteger;
22 import java.util.ArrayList;
23 import java.util.List;
24 import javax.xml.bind.JAXBElement;
25 import javax.xml.bind.annotation.XmlAccessType;
26 import javax.xml.bind.annotation.XmlAccessorType;
27 import javax.xml.bind.annotation.XmlAnyElement;
28 import javax.xml.bind.annotation.XmlAttribute;
29 import javax.xml.bind.annotation.XmlElementRef;
30 import javax.xml.bind.annotation.XmlMixed;
31 import javax.xml.bind.annotation.XmlSchemaType;
32 import javax.xml.bind.annotation.XmlType;
33
34
35 /**
36 * <p>Java class for SignatureMethodType complex type.
37 *
38 * <p>The following schema fragment specifies the expected content contained within this class.
39 *
40 * <pre>
41 * <complexType name="SignatureMethodType">
42 * <complexContent>
43 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
44 * <sequence>
45 * <element name="HMACOutputLength" type="{http://www.w3.org/2000/09/xmldsig#}HMACOutputLengthType" minOccurs="0"/>
46 * <any/>
47 * </sequence>
48 * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
49 * </restriction>
50 * </complexContent>
51 * </complexType>
52 * </pre>
53 *
54 *
55 */
56 @XmlAccessorType(XmlAccessType.FIELD)
57 @XmlType(name = "SignatureMethodType", propOrder = {
58 "content"
59 })
60 public class SignatureMethodType {
61
62 @XmlElementRef(name = "HMACOutputLength", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class)
63 @XmlMixed
64 @XmlAnyElement(lax = true)
65 protected List<Object> content;
66 @XmlAttribute(name = "Algorithm", required = true)
67 @XmlSchemaType(name = "anyURI")
68 protected String algorithm;
69
70 /**
71 * Gets the value of the content property.
72 *
73 * <p>
74 * This accessor method returns a reference to the live list,
75 * not a snapshot. Therefore any modification you make to the
76 * returned list will be present inside the JAXB object.
77 * This is why there is not a <CODE>set</CODE> method for the content property.
78 *
79 * <p>
80 * For example, to add a new item, do as follows:
81 * <pre>
82 * getContent().add(newItem);
83 * </pre>
84 *
85 *
86 * <p>
87 * Objects of the following type(s) are allowed in the list
88 * {@link String }
89 * {@link JAXBElement }{@code <}{@link BigInteger }{@code >}
90 * {@link Object }
91 *
92 *
93 */
94 public List<Object> getContent() {
95 if (content == null) {
96 content = new ArrayList<Object>();
97 }
98 return this.content;
99 }
100
101 /**
102 * Gets the value of the algorithm property.
103 *
104 * @return
105 * possible object is
106 * {@link String }
107 *
108 */
109 public String getAlgorithm() {
110 return algorithm;
111 }
112
113 /**
114 * Sets the value of the algorithm property.
115 *
116 * @param value
117 * allowed object is
118 * {@link String }
119 *
120 */
121 public void setAlgorithm(String value) {
122 this.algorithm = value;
123 }
124
125 }