/* Copyright (c) Citrix Systems Inc. * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided * that the following conditions are met: * * * Redistributions of source code must retain the above * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the * following disclaimer in the documentation and/or other * materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ using System; using System.Collections.Generic; using System.Text; using System.Xml.Serialization; using XenOvf.Definitions.XDIGSIG; namespace XenOvf.Definitions.XENC { /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] [System.Xml.Serialization.XmlRootAttribute("CipherData", Namespace = "http://www.w3.org/2001/04/xmlenc#", IsNullable = false)] public partial class CipherDataType { private object itemField; /// [System.Xml.Serialization.XmlElementAttribute("CipherReference", typeof(CipherReferenceType))] [System.Xml.Serialization.XmlElementAttribute("CipherValue", typeof(byte[]), DataType = "base64Binary")] public object Item { get { return this.itemField; } set { this.itemField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] [System.Xml.Serialization.XmlRootAttribute("CipherReference", Namespace = "http://www.w3.org/2001/04/xmlenc#", IsNullable = false)] public partial class CipherReferenceType { private TransformsType itemField; private string uRIField; /// [System.Xml.Serialization.XmlElementAttribute("Transforms")] public TransformsType Item { get { return this.itemField; } set { this.itemField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType = "anyURI")] public string URI { get { return this.uRIField; } set { this.uRIField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] public partial class TransformsType { private TransformType[] transformField; /// [System.Xml.Serialization.XmlElementAttribute("Transform", Namespace = "http://www.w3.org/2000/09/xmldsig#")] public TransformType[] Transform { get { return this.transformField; } set { this.transformField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] public partial class EncryptionMethodType { private string keySizeField; private byte[] oAEPparamsField; private System.Xml.XmlNode[] anyField; private string algorithmField; /// [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")] public string KeySize { get { return this.keySizeField; } set { this.keySizeField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] public byte[] OAEPparams { get { return this.oAEPparamsField; } set { this.oAEPparamsField = value; } } /// [System.Xml.Serialization.XmlTextAttribute()] [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlNode[] Any { get { return this.anyField; } set { this.anyField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType = "anyURI")] public string Algorithm { get { return this.algorithmField; } set { this.algorithmField = value; } } } /// [System.Xml.Serialization.XmlIncludeAttribute(typeof(EncryptedKeyType))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(EncryptedDataType))] [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] public abstract partial class EncryptedType { private EncryptionMethodType encryptionMethodField; private KeyInfoType keyInfoField; private CipherDataType cipherDataField; private EncryptionPropertiesType encryptionPropertiesField; private string idField; private string typeField; private string mimeTypeField; private string encodingField; /// public EncryptionMethodType EncryptionMethod { get { return this.encryptionMethodField; } set { this.encryptionMethodField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Namespace = "http://www.w3.org/2000/09/xmldsig#")] public KeyInfoType KeyInfo { get { return this.keyInfoField; } set { this.keyInfoField = value; } } /// public CipherDataType CipherData { get { return this.cipherDataField; } set { this.cipherDataField = value; } } /// public EncryptionPropertiesType EncryptionProperties { get { return this.encryptionPropertiesField; } set { this.encryptionPropertiesField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType = "ID")] public string Id { get { return this.idField; } set { this.idField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType = "anyURI")] public string Type { get { return this.typeField; } set { this.typeField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string MimeType { get { return this.mimeTypeField; } set { this.mimeTypeField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType = "anyURI")] public string Encoding { get { return this.encodingField; } set { this.encodingField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] [System.Xml.Serialization.XmlRootAttribute("EncryptionProperties", Namespace = "http://www.w3.org/2001/04/xmlenc#", IsNullable = false)] public partial class EncryptionPropertiesType { private EncryptionPropertyType[] encryptionPropertyField; private string idField; /// [System.Xml.Serialization.XmlElementAttribute("EncryptionProperty")] public EncryptionPropertyType[] EncryptionProperty { get { return this.encryptionPropertyField; } set { this.encryptionPropertyField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType = "ID")] public string Id { get { return this.idField; } set { this.idField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] [System.Xml.Serialization.XmlRootAttribute("EncryptionProperty", Namespace = "http://www.w3.org/2001/04/xmlenc#", IsNullable = false)] public partial class EncryptionPropertyType { private System.Xml.XmlElement[] itemsField; private string[] textField; private string targetField; private string idField; private System.Xml.XmlAttribute[] anyAttrField; /// [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Items { get { return this.itemsField; } set { this.itemsField = value; } } /// [System.Xml.Serialization.XmlTextAttribute()] public string[] Text { get { return this.textField; } set { this.textField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType = "anyURI")] public string Target { get { return this.targetField; } set { this.targetField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType = "ID")] public string Id { get { return this.idField; } set { this.idField = value; } } /// [System.Xml.Serialization.XmlAnyAttributeAttribute()] public System.Xml.XmlAttribute[] AnyAttr { get { return this.anyAttrField; } set { this.anyAttrField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] [System.Xml.Serialization.XmlRootAttribute("EncryptedData", Namespace = "http://www.w3.org/2001/04/xmlenc#", IsNullable = false)] public partial class EncryptedDataType : EncryptedType { } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] [System.Xml.Serialization.XmlRootAttribute("EncryptedKey", Namespace = "http://www.w3.org/2001/04/xmlenc#", IsNullable = false)] public partial class EncryptedKeyType : EncryptedType { private ReferenceList referenceListField; private string carriedKeyNameField; private string recipientField; /// public ReferenceList ReferenceList { get { return this.referenceListField; } set { this.referenceListField = value; } } /// public string CarriedKeyName { get { return this.carriedKeyNameField; } set { this.carriedKeyNameField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string Recipient { get { return this.recipientField; } set { this.recipientField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DataReference))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(KeyReference))] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2001/04/xmlenc#")] [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#", IsNullable = false)] public partial class ReferenceList { private ReferenceType[] itemsField; private ItemsChoiceType3[] itemsElementNameField; /// [System.Xml.Serialization.XmlElementAttribute("DataReference", typeof(ReferenceType))] [System.Xml.Serialization.XmlElementAttribute("KeyReference", typeof(ReferenceType))] [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")] public ReferenceType[] Items { get { return this.itemsField; } set { this.itemsField = value; } } /// [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")] [System.Xml.Serialization.XmlIgnoreAttribute()] public ItemsChoiceType3[] ItemsElementName { get { return this.itemsElementNameField; } set { this.itemsElementNameField = value; } } } [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2001/04/xmlenc#")] [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#", IsNullable = false)] public partial class DataReference : ReferenceType { private string valueTypeField; [System.Xml.Serialization.XmlAttributeAttribute()] public string ValueType { get { return this.valueTypeField; } set { this.valueTypeField = value; } } } [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.w3.org/2001/04/xmlenc#")] [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#", IsNullable = false)] public partial class KeyReference : ReferenceType { } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] public abstract class ReferenceType { private System.Xml.XmlElement[] anyField; private string uRIField; /// [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType = "anyURI")] public string URI { get { return this.uRIField; } set { this.uRIField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#", IncludeInSchema = false)] public enum ItemsChoiceType3 { /// DataReference, /// KeyReference, } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2001/04/xmlenc#")] [System.Xml.Serialization.XmlRootAttribute("AgreementMethod", Namespace = "http://www.w3.org/2001/04/xmlenc#", IsNullable = false)] public partial class AgreementMethodType { private byte[] kANonceField; private System.Xml.XmlNode[] anyField; private KeyInfoType originatorKeyInfoField; private KeyInfoType recipientKeyInfoField; private string algorithmField; /// [System.Xml.Serialization.XmlElementAttribute("KA-Nonce", DataType = "base64Binary")] public byte[] KANonce { get { return this.kANonceField; } set { this.kANonceField = value; } } /// [System.Xml.Serialization.XmlTextAttribute()] [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlNode[] Any { get { return this.anyField; } set { this.anyField = value; } } /// public KeyInfoType OriginatorKeyInfo { get { return this.originatorKeyInfoField; } set { this.originatorKeyInfoField = value; } } /// public KeyInfoType RecipientKeyInfo { get { return this.recipientKeyInfoField; } set { this.recipientKeyInfoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType = "anyURI")] public string Algorithm { get { return this.algorithmField; } set { this.algorithmField = value; } } } }