// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.02.10 at 10:02:26 PM CET // package ietf.params.xml.ns.keyprov.pskc; 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.XmlID; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.w3._2000._09.xmldsig_.KeyInfoType; import org.w3._2000._09.xmldsig_.SignatureType; /** * <p>Java class for KeyContainerType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="KeyContainerType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="EncryptionKey" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/> * <element name="MACMethod" type="{urn:ietf:params:xml:ns:keyprov:pskc}MACMethodType" minOccurs="0"/> * <element name="KeyPackage" type="{urn:ietf:params:xml:ns:keyprov:pskc}KeyPackageType" maxOccurs="unbounded"/> * <element name="Signature" type="{http://www.w3.org/2000/09/xmldsig#}SignatureType" minOccurs="0"/> * <element name="Extensions" type="{urn:ietf:params:xml:ns:keyprov:pskc}ExtensionsType" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * <attribute name="Version" use="required" type="{urn:ietf:params:xml:ns:keyprov:pskc}VersionType" /> * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "KeyContainerType", propOrder = { "encryptionKey", "macMethod", "keyPackage", "signature", "extensions" }) public class KeyContainerType { @XmlElement(name = "EncryptionKey") protected KeyInfoType encryptionKey; @XmlElement(name = "MACMethod") protected MACMethodType macMethod; @XmlElement(name = "KeyPackage", required = true) protected List<KeyPackageType> keyPackage; @XmlElement(name = "Signature") protected SignatureType signature; @XmlElement(name = "Extensions") protected List<ExtensionsType> extensions; @XmlAttribute(name = "Version", required = true) protected String version; @XmlAttribute(name = "Id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; /** * Gets the value of the encryptionKey property. * * @return * possible object is * {@link KeyInfoType } * */ public KeyInfoType getEncryptionKey() { return encryptionKey; } /** * Sets the value of the encryptionKey property. * * @param value * allowed object is * {@link KeyInfoType } * */ public void setEncryptionKey(KeyInfoType value) { this.encryptionKey = value; } /** * Gets the value of the macMethod property. * * @return * possible object is * {@link MACMethodType } * */ public MACMethodType getMACMethod() { return macMethod; } /** * Sets the value of the macMethod property. * * @param value * allowed object is * {@link MACMethodType } * */ public void setMACMethod(MACMethodType value) { this.macMethod = value; } /** * Gets the value of the keyPackage property. * * <p> * 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 <CODE>set</CODE> method for the keyPackage property. * * <p> * For example, to add a new item, do as follows: * <pre> * getKeyPackage().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link KeyPackageType } * * */ public List<KeyPackageType> getKeyPackage() { if (keyPackage == null) { keyPackage = new ArrayList<KeyPackageType>(); } return this.keyPackage; } /** * Gets the value of the signature property. * * @return * possible object is * {@link SignatureType } * */ public SignatureType getSignature() { return signature; } /** * Sets the value of the signature property. * * @param value * allowed object is * {@link SignatureType } * */ public void setSignature(SignatureType value) { this.signature = value; } /** * Gets the value of the extensions property. * * <p> * 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 <CODE>set</CODE> method for the extensions property. * * <p> * For example, to add a new item, do as follows: * <pre> * getExtensions().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ExtensionsType } * * */ public List<ExtensionsType> getExtensions() { if (extensions == null) { extensions = new ArrayList<ExtensionsType>(); } return this.extensions; } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } }