org.xipki.ca.certprofile.x509.jaxb.ExtendedKeyUsage Maven / Gradle / Ivy
package org.xipki.ca.certprofile.x509.jaxb;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="usage" maxOccurs="unbounded">
* <complexType>
* <simpleContent>
* <extension base="<http://xipki.org/ca/xmlprofile/v2>oidWithDescType">
* <attribute name="required" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </extension>
* </simpleContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"usage"
})
@XmlRootElement(name = "extendedKeyUsage")
public class ExtendedKeyUsage {
@XmlElement(required = true)
protected List usage;
/**
* Gets the value of the usage property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the usage property.
*
*
* For example, to add a new item, do as follows:
*
* getUsage().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ExtendedKeyUsage.Usage }
*
*
*/
public List getUsage() {
if (usage == null) {
usage = new ArrayList();
}
return this.usage;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <simpleContent>
* <extension base="<http://xipki.org/ca/xmlprofile/v2>oidWithDescType">
* <attribute name="required" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </extension>
* </simpleContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class Usage
extends OidWithDescType
{
@XmlAttribute(name = "required", required = true)
protected boolean required;
/**
* Gets the value of the required property.
*
*/
public boolean isRequired() {
return required;
}
/**
* Sets the value of the required property.
*
*/
public void setRequired(boolean value) {
this.required = value;
}
}
}