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.util.ArrayList;
22 import java.util.List;
23 import javax.xml.bind.JAXBElement;
24 import javax.xml.bind.annotation.XmlAccessType;
25 import javax.xml.bind.annotation.XmlAccessorType;
26 import javax.xml.bind.annotation.XmlAnyElement;
27 import javax.xml.bind.annotation.XmlElementRef;
28 import javax.xml.bind.annotation.XmlElementRefs;
29 import javax.xml.bind.annotation.XmlType;
30 import org.w3c.dom.Element;
31
32
33 /**
34 * <p>Java class for X509DataType complex type.
35 *
36 * <p>The following schema fragment specifies the expected content contained within this class.
37 *
38 * <pre>
39 * <complexType name="X509DataType">
40 * <complexContent>
41 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 * <sequence maxOccurs="unbounded">
43 * <choice>
44 * <element name="X509IssuerSerial" type="{http://www.w3.org/2000/09/xmldsig#}X509IssuerSerialType"/>
45 * <element name="X509SKI" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
46 * <element name="X509SubjectName" type="{http://www.w3.org/2001/XMLSchema}string"/>
47 * <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
48 * <element name="X509CRL" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
49 * <any/>
50 * </choice>
51 * </sequence>
52 * </restriction>
53 * </complexContent>
54 * </complexType>
55 * </pre>
56 *
57 *
58 */
59 @XmlAccessorType(XmlAccessType.FIELD)
60 @XmlType(name = "X509DataType", propOrder = {
61 "x509IssuerSerialOrX509SKIOrX509SubjectName"
62 })
63 public class X509DataType {
64
65 @XmlElementRefs({
66 @XmlElementRef(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
67 @XmlElementRef(name = "X509SKI", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
68 @XmlElementRef(name = "X509CRL", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
69 @XmlElementRef(name = "X509SubjectName", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
70 @XmlElementRef(name = "X509IssuerSerial", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class)
71 })
72 @XmlAnyElement(lax = true)
73 protected List<Object> x509IssuerSerialOrX509SKIOrX509SubjectName;
74
75 /**
76 * Gets the value of the x509IssuerSerialOrX509SKIOrX509SubjectName property.
77 *
78 * <p>
79 * This accessor method returns a reference to the live list,
80 * not a snapshot. Therefore any modification you make to the
81 * returned list will be present inside the JAXB object.
82 * This is why there is not a <CODE>set</CODE> method for the x509IssuerSerialOrX509SKIOrX509SubjectName property.
83 *
84 * <p>
85 * For example, to add a new item, do as follows:
86 * <pre>
87 * getX509IssuerSerialOrX509SKIOrX509SubjectName().add(newItem);
88 * </pre>
89 *
90 *
91 * <p>
92 * Objects of the following type(s) are allowed in the list
93 * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
94 * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
95 * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
96 * {@link Object }
97 * {@link JAXBElement }{@code <}{@link String }{@code >}
98 * {@link JAXBElement }{@code <}{@link X509IssuerSerialType }{@code >}
99 * {@link Element }
100 *
101 *
102 */
103 public List<Object> getX509IssuerSerialOrX509SKIOrX509SubjectName() {
104 if (x509IssuerSerialOrX509SKIOrX509SubjectName == null) {
105 x509IssuerSerialOrX509SKIOrX509SubjectName = new ArrayList<Object>();
106 }
107 return this.x509IssuerSerialOrX509SKIOrX509SubjectName;
108 }
109
110 }