From 28008a746a31abb7909dd86cb0cd413ac8943b0b Mon Sep 17 00:00:00 2001 From: jmpoep Date: Thu, 7 Dec 2023 16:51:07 +0800 Subject: first commit --- .../ipn_sqlclr.Test/Properties/AssemblyInfo.cs | 36 + .../policyService/CertificateEnrollmentPolicy.wsdl | 37 + .../policyService/CertificateEnrollmentPolicy.xsd | 388 +++ .../Service References/policyService/Reference.cs | 3010 ++++++++++++++++++++ .../policyService/Reference.svcmap | 31 + .../policyService/configuration.svcinfo | 11 + .../policyService/configuration91.svcinfo | 310 ++ ...st.policyService.getPoliciesResponse.datasource | 10 + unit-tests/ipn_sqlclr.Test/TaggantWebTest.cs | 129 + unit-tests/ipn_sqlclr.Test/VmpLicenseKeyTest.cs | 73 + unit-tests/ipn_sqlclr.Test/app.config | 3 + unit-tests/ipn_sqlclr.Test/ipn_sqlclr.Test.csproj | 128 + 12 files changed, 4166 insertions(+) create mode 100644 unit-tests/ipn_sqlclr.Test/Properties/AssemblyInfo.cs create mode 100644 unit-tests/ipn_sqlclr.Test/Service References/policyService/CertificateEnrollmentPolicy.wsdl create mode 100644 unit-tests/ipn_sqlclr.Test/Service References/policyService/CertificateEnrollmentPolicy.xsd create mode 100644 unit-tests/ipn_sqlclr.Test/Service References/policyService/Reference.cs create mode 100644 unit-tests/ipn_sqlclr.Test/Service References/policyService/Reference.svcmap create mode 100644 unit-tests/ipn_sqlclr.Test/Service References/policyService/configuration.svcinfo create mode 100644 unit-tests/ipn_sqlclr.Test/Service References/policyService/configuration91.svcinfo create mode 100644 unit-tests/ipn_sqlclr.Test/Service References/policyService/ipn_sqlclr.Test.policyService.getPoliciesResponse.datasource create mode 100644 unit-tests/ipn_sqlclr.Test/TaggantWebTest.cs create mode 100644 unit-tests/ipn_sqlclr.Test/VmpLicenseKeyTest.cs create mode 100644 unit-tests/ipn_sqlclr.Test/app.config create mode 100644 unit-tests/ipn_sqlclr.Test/ipn_sqlclr.Test.csproj (limited to 'unit-tests/ipn_sqlclr.Test') diff --git a/unit-tests/ipn_sqlclr.Test/Properties/AssemblyInfo.cs b/unit-tests/ipn_sqlclr.Test/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b09320d --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ipn_sqlclr.Test")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ipn_sqlclr.Test")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("2ad5664f-7b08-40b7-a57a-2bca1f70ce55")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/unit-tests/ipn_sqlclr.Test/Service References/policyService/CertificateEnrollmentPolicy.wsdl b/unit-tests/ipn_sqlclr.Test/Service References/policyService/CertificateEnrollmentPolicy.wsdl new file mode 100644 index 0000000..2c51dd3 --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/Service References/policyService/CertificateEnrollmentPolicy.wsdl @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/unit-tests/ipn_sqlclr.Test/Service References/policyService/CertificateEnrollmentPolicy.xsd b/unit-tests/ipn_sqlclr.Test/Service References/policyService/CertificateEnrollmentPolicy.xsd new file mode 100644 index 0000000..6e58e09 --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/Service References/policyService/CertificateEnrollmentPolicy.xsd @@ -0,0 +1,388 @@ + + + + + XML Schema for policyService Web Services + version 2.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/unit-tests/ipn_sqlclr.Test/Service References/policyService/Reference.cs b/unit-tests/ipn_sqlclr.Test/Service References/policyService/Reference.cs new file mode 100644 index 0000000..c12c381 --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/Service References/policyService/Reference.cs @@ -0,0 +1,3010 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34014 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ipn_sqlclr.Test.policyService { + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy", ConfigurationName="policyService.policy")] + public interface policy { + + // CODEGEN: Generating message contract since the operation requestPolicies is neither RPC nor document wrapped. + [System.ServiceModel.OperationContractAttribute(Action="http://schemas.verisign.com/pkiservices/2009/07/policy/getPolicies", ReplyAction="http://schemas.verisign.com/pkiservices/2009/07/policy/getPoliciesResponse")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + ipn_sqlclr.Test.policyService.requestPoliciesResponse requestPolicies(ipn_sqlclr.Test.policyService.requestPoliciesRequest request); + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class getPolicies : object, System.ComponentModel.INotifyPropertyChanged { + + private string versionField; + + private string clientTransactionIDField; + + private Client clientField; + + private RequestFilter requestFilterField; + + private bool signResponseField; + + private bool signResponseFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string version { + get { + return this.versionField; + } + set { + this.versionField = value; + this.RaisePropertyChanged("version"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string clientTransactionID { + get { + return this.clientTransactionIDField; + } + set { + this.clientTransactionIDField = value; + this.RaisePropertyChanged("clientTransactionID"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public Client client { + get { + return this.clientField; + } + set { + this.clientField = value; + this.RaisePropertyChanged("client"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public RequestFilter requestFilter { + get { + return this.requestFilterField; + } + set { + this.requestFilterField = value; + this.RaisePropertyChanged("requestFilter"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public bool signResponse { + get { + return this.signResponseField; + } + set { + this.signResponseField = value; + this.RaisePropertyChanged("signResponse"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool signResponseSpecified { + get { + return this.signResponseFieldSpecified; + } + set { + this.signResponseFieldSpecified = value; + this.RaisePropertyChanged("signResponseSpecified"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class Client : object, System.ComponentModel.INotifyPropertyChanged { + + private System.Nullable lastUpdatetimeField; + + private string preferredLanguageField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public System.Nullable lastUpdatetime { + get { + return this.lastUpdatetimeField; + } + set { + this.lastUpdatetimeField = value; + this.RaisePropertyChanged("lastUpdatetime"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="language", IsNullable=true, Order=1)] + public string preferredLanguage { + get { + return this.preferredLanguageField; + } + set { + this.preferredLanguageField = value; + this.RaisePropertyChanged("preferredLanguage"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=2)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class OID : object, System.ComponentModel.INotifyPropertyChanged { + + private string valueField; + + private int oIDReferenceIDField; + + private uint groupField; + + private string defaultNameField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string value { + get { + return this.valueField; + } + set { + this.valueField = value; + this.RaisePropertyChanged("value"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public int oIDReferenceID { + get { + return this.oIDReferenceIDField; + } + set { + this.oIDReferenceIDField = value; + this.RaisePropertyChanged("oIDReferenceID"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public uint group { + get { + return this.groupField; + } + set { + this.groupField = value; + this.RaisePropertyChanged("group"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public string defaultName { + get { + return this.defaultNameField; + } + set { + this.defaultNameField = value; + this.RaisePropertyChanged("defaultName"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=4)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class CA : object, System.ComponentModel.INotifyPropertyChanged { + + private string[] urisField; + + private byte[] certificateField; + + private string cAIssuerNameField; + + private int cAReferenceIDField; + + private System.Nullable cATypeField; + + private byte[][] intermediateCACertificatesField; + + private byte[] rootCACertificateField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute("uris", DataType="anyURI", Order=0)] + public string[] uris { + get { + return this.urisField; + } + set { + this.urisField = value; + this.RaisePropertyChanged("uris"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=1)] + public byte[] certificate { + get { + return this.certificateField; + } + set { + this.certificateField = value; + this.RaisePropertyChanged("certificate"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public string cAIssuerName { + get { + return this.cAIssuerNameField; + } + set { + this.cAIssuerNameField = value; + this.RaisePropertyChanged("cAIssuerName"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public int cAReferenceID { + get { + return this.cAReferenceIDField; + } + set { + this.cAReferenceIDField = value; + this.RaisePropertyChanged("cAReferenceID"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=4)] + public System.Nullable cAType { + get { + return this.cATypeField; + } + set { + this.cATypeField = value; + this.RaisePropertyChanged("cAType"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("intermediateCACertificates", DataType="base64Binary", Order=5)] + public byte[][] intermediateCACertificates { + get { + return this.intermediateCACertificatesField; + } + set { + this.intermediateCACertificatesField = value; + this.RaisePropertyChanged("intermediateCACertificates"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=6)] + public byte[] rootCACertificate { + get { + return this.rootCACertificateField; + } + set { + this.rootCACertificateField = value; + this.RaisePropertyChanged("rootCACertificate"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=7)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public enum CAType { + + /// + @public, + + /// + @private, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class MigrationOIDCollection : object, System.ComponentModel.INotifyPropertyChanged { + + private string[] migratedFromOIDField; + + private string migratedToOIDField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute("migratedFromOID", Order=0)] + public string[] migratedFromOID { + get { + return this.migratedFromOIDField; + } + set { + this.migratedFromOIDField = value; + this.RaisePropertyChanged("migratedFromOID"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public string migratedToOID { + get { + return this.migratedToOIDField; + } + set { + this.migratedToOIDField = value; + this.RaisePropertyChanged("migratedToOID"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=2)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class ApplicationInstructionsType : object, System.ComponentModel.INotifyPropertyChanged { + + private string fileContentTypeField; + + private string urlField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string fileContentType { + get { + return this.fileContentTypeField; + } + set { + this.fileContentTypeField = value; + this.RaisePropertyChanged("fileContentType"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="anyURI", Order=1)] + public string url { + get { + return this.urlField; + } + set { + this.urlField = value; + this.RaisePropertyChanged("url"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=2)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class SeatInfoType : object, System.ComponentModel.INotifyPropertyChanged { + + private AttributeValueType attributeNameValueField; + + private AttributeNameValuePropertyType attributeNameValuePropertyField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public AttributeValueType attributeNameValue { + get { + return this.attributeNameValueField; + } + set { + this.attributeNameValueField = value; + this.RaisePropertyChanged("attributeNameValue"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public AttributeNameValuePropertyType attributeNameValueProperty { + get { + return this.attributeNameValuePropertyField; + } + set { + this.attributeNameValuePropertyField = value; + this.RaisePropertyChanged("attributeNameValueProperty"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=2)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class AttributeValueType : object, System.ComponentModel.INotifyPropertyChanged { + + private bool mandatoryField; + + private bool mandatoryFieldSpecified; + + private string typeField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool mandatory { + get { + return this.mandatoryField; + } + set { + this.mandatoryField = value; + this.RaisePropertyChanged("mandatory"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool mandatorySpecified { + get { + return this.mandatoryFieldSpecified; + } + set { + this.mandatoryFieldSpecified = value; + this.RaisePropertyChanged("mandatorySpecified"); + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string type { + get { + return this.typeField; + } + set { + this.typeField = value; + this.RaisePropertyChanged("type"); + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public string Value { + get { + return this.valueField; + } + set { + this.valueField = value; + this.RaisePropertyChanged("Value"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class AttributeNameValuePropertyType : object, System.ComponentModel.INotifyPropertyChanged { + + private string valueField; + + private string sourceField; + + private string sourceAttributeNameField; + + private System.Nullable mandatoryField; + + private System.Nullable overridableField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public string value { + get { + return this.valueField; + } + set { + this.valueField = value; + this.RaisePropertyChanged("value"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string source { + get { + return this.sourceField; + } + set { + this.sourceField = value; + this.RaisePropertyChanged("source"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public string sourceAttributeName { + get { + return this.sourceAttributeNameField; + } + set { + this.sourceAttributeNameField = value; + this.RaisePropertyChanged("sourceAttributeName"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public System.Nullable mandatory { + get { + return this.mandatoryField; + } + set { + this.mandatoryField = value; + this.RaisePropertyChanged("mandatory"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=4)] + public System.Nullable overridable { + get { + return this.overridableField; + } + set { + this.overridableField = value; + this.RaisePropertyChanged("overridable"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class PollingTimeType : object, System.ComponentModel.INotifyPropertyChanged { + + private int nextUpdateHoursField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public int nextUpdateHours { + get { + return this.nextUpdateHoursField; + } + set { + this.nextUpdateHoursField = value; + this.RaisePropertyChanged("nextUpdateHours"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class PollingPolicyType : object, System.ComponentModel.INotifyPropertyChanged { + + private PollingTimeType gatewayPollingTimeField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public PollingTimeType gatewayPollingTime { + get { + return this.gatewayPollingTimeField; + } + set { + this.gatewayPollingTimeField = value; + this.RaisePropertyChanged("gatewayPollingTime"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=1)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class DirectoryInfoType : object, System.ComponentModel.INotifyPropertyChanged { + + private string directoryTypeField; + + private string domainNameField; + + private string itemField; + + private ItemChoiceType itemElementNameField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string directoryType { + get { + return this.directoryTypeField; + } + set { + this.directoryTypeField = value; + this.RaisePropertyChanged("directoryType"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string domainName { + get { + return this.domainNameField; + } + set { + this.domainNameField = value; + this.RaisePropertyChanged("domainName"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("hostName", typeof(string), Order=2)] + [System.Xml.Serialization.XmlElementAttribute("ipAddress", typeof(string), Order=2)] + [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] + public string Item { + get { + return this.itemField; + } + set { + this.itemField = value; + this.RaisePropertyChanged("Item"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + [System.Xml.Serialization.XmlIgnoreAttribute()] + public ItemChoiceType ItemElementName { + get { + return this.itemElementNameField; + } + set { + this.itemElementNameField = value; + this.RaisePropertyChanged("ItemElementName"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=4)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy", IncludeInSchema=false)] + public enum ItemChoiceType { + + /// + hostName, + + /// + ipAddress, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class AuthorizationInfoType : object, System.ComponentModel.INotifyPropertyChanged { + + private string[] userAuthorizationCollectionField; + + private DirectoryInfoType directoryInfoField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlArrayAttribute(Order=0)] + [System.Xml.Serialization.XmlArrayItemAttribute("authorizedGroup", IsNullable=false)] + public string[] userAuthorizationCollection { + get { + return this.userAuthorizationCollectionField; + } + set { + this.userAuthorizationCollectionField = value; + this.RaisePropertyChanged("userAuthorizationCollection"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public DirectoryInfoType directoryInfo { + get { + return this.directoryInfoField; + } + set { + this.directoryInfoField = value; + this.RaisePropertyChanged("directoryInfo"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=2)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class RAPolicy : object, System.ComponentModel.INotifyPropertyChanged { + + private bool registerUserField; + + private bool verifyUserField; + + private PublishCert publishCertField; + + private AuthorizationInfoType[] authorizationInfoField; + + private PollingPolicyType pollingPolicyField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public bool registerUser { + get { + return this.registerUserField; + } + set { + this.registerUserField = value; + this.RaisePropertyChanged("registerUser"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public bool verifyUser { + get { + return this.verifyUserField; + } + set { + this.verifyUserField = value; + this.RaisePropertyChanged("verifyUser"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public PublishCert publishCert { + get { + return this.publishCertField; + } + set { + this.publishCertField = value; + this.RaisePropertyChanged("publishCert"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("authorizationInfo", Order=3)] + public AuthorizationInfoType[] authorizationInfo { + get { + return this.authorizationInfoField; + } + set { + this.authorizationInfoField = value; + this.RaisePropertyChanged("authorizationInfo"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=4)] + public PollingPolicyType pollingPolicy { + get { + return this.pollingPolicyField; + } + set { + this.pollingPolicyField = value; + this.RaisePropertyChanged("pollingPolicy"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=5)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public enum PublishCert { + + /// + yes, + + /// + no, + + /// + clientProvided, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class ServiceEndpointType : object, System.ComponentModel.INotifyPropertyChanged { + + private string typeField; + + private string endpointURIField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string type { + get { + return this.typeField; + } + set { + this.typeField = value; + this.RaisePropertyChanged("type"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="anyURI", Order=1)] + public string endpointURI { + get { + return this.endpointURIField; + } + set { + this.endpointURIField = value; + this.RaisePropertyChanged("endpointURI"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=2)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class PersonalInfoType : object, System.ComponentModel.INotifyPropertyChanged { + + private string nameField; + + private string emailField; + + private string phoneField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + this.RaisePropertyChanged("name"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string email { + get { + return this.emailField; + } + set { + this.emailField = value; + this.RaisePropertyChanged("email"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public string phone { + get { + return this.phoneField; + } + set { + this.phoneField = value; + this.RaisePropertyChanged("phone"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=3)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class SystemInformation : object, System.ComponentModel.INotifyPropertyChanged { + + private AttributeNameValuePairType[] searchCertificateDataField; + + private PublishCert cACertPublishField; + + private bool cACertPublishFieldSpecified; + + private CACertPublishNameValuePair cACertPublishNameValuePairField; + + private bool cACertPublishNameValuePairFieldSpecified; + + private DeliveryFormat certificateDeliveryFormatField; + + private PersonalInfoType adminInfoField; + + private ServiceEndpointType[] serviceEndpointListField; + + private string duplicateCertPolicyField; + + private string supersededPolicyOIDField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlArrayAttribute(Order=0)] + [System.Xml.Serialization.XmlArrayItemAttribute("searchAttributeNameValuePair", IsNullable=false)] + public AttributeNameValuePairType[] searchCertificateData { + get { + return this.searchCertificateDataField; + } + set { + this.searchCertificateDataField = value; + this.RaisePropertyChanged("searchCertificateData"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public PublishCert cACertPublish { + get { + return this.cACertPublishField; + } + set { + this.cACertPublishField = value; + this.RaisePropertyChanged("cACertPublish"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool cACertPublishSpecified { + get { + return this.cACertPublishFieldSpecified; + } + set { + this.cACertPublishFieldSpecified = value; + this.RaisePropertyChanged("cACertPublishSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public CACertPublishNameValuePair cACertPublishNameValuePair { + get { + return this.cACertPublishNameValuePairField; + } + set { + this.cACertPublishNameValuePairField = value; + this.RaisePropertyChanged("cACertPublishNameValuePair"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool cACertPublishNameValuePairSpecified { + get { + return this.cACertPublishNameValuePairFieldSpecified; + } + set { + this.cACertPublishNameValuePairFieldSpecified = value; + this.RaisePropertyChanged("cACertPublishNameValuePairSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public DeliveryFormat certificateDeliveryFormat { + get { + return this.certificateDeliveryFormatField; + } + set { + this.certificateDeliveryFormatField = value; + this.RaisePropertyChanged("certificateDeliveryFormat"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public PersonalInfoType adminInfo { + get { + return this.adminInfoField; + } + set { + this.adminInfoField = value; + this.RaisePropertyChanged("adminInfo"); + } + } + + /// + [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=5)] + [System.Xml.Serialization.XmlArrayItemAttribute("serviceEndpoint", IsNullable=false)] + public ServiceEndpointType[] serviceEndpointList { + get { + return this.serviceEndpointListField; + } + set { + this.serviceEndpointListField = value; + this.RaisePropertyChanged("serviceEndpointList"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=6)] + public string duplicateCertPolicy { + get { + return this.duplicateCertPolicyField; + } + set { + this.duplicateCertPolicyField = value; + this.RaisePropertyChanged("duplicateCertPolicy"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=7)] + public string supersededPolicyOID { + get { + return this.supersededPolicyOIDField; + } + set { + this.supersededPolicyOIDField = value; + this.RaisePropertyChanged("supersededPolicyOID"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=8)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class AttributeNameValuePairType : object, System.ComponentModel.INotifyPropertyChanged { + + private string attributeNameField; + + private AttributeValueType attributeNameValueField; + + private AttributeNameValuePropertyType attributeNameValuePropertyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string attributeName { + get { + return this.attributeNameField; + } + set { + this.attributeNameField = value; + this.RaisePropertyChanged("attributeName"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)] + public AttributeValueType attributeNameValue { + get { + return this.attributeNameValueField; + } + set { + this.attributeNameValueField = value; + this.RaisePropertyChanged("attributeNameValue"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public AttributeNameValuePropertyType attributeNameValueProperty { + get { + return this.attributeNameValuePropertyField; + } + set { + this.attributeNameValuePropertyField = value; + this.RaisePropertyChanged("attributeNameValueProperty"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public enum CACertPublishNameValuePair { + + /// + [System.Xml.Serialization.XmlEnumAttribute("$publish_flag")] + publish_flag, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public enum DeliveryFormat { + + /// + [System.Xml.Serialization.XmlEnumAttribute("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X5" + + "09v3")] + httpdocsoasisopenorgwss200401oasis200401wssx509tokenprofile10X509v3, + + /// + [System.Xml.Serialization.XmlEnumAttribute("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#PK" + + "CS7")] + httpdocsoasisopenorgwss200401oasis200401wssx509tokenprofile10PKCS7, + + /// + [System.Xml.Serialization.XmlEnumAttribute("http://schemas.verisign.com/pkiservices/2009/07/PKCS12")] + httpschemasverisigncompkiservices200907PKCS12, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class ClientPolicy : object, System.ComponentModel.INotifyPropertyChanged { + + private string clientNameField; + + private int maxPinLengthField; + + private bool maxPinLengthFieldSpecified; + + private int minPinLengthField; + + private bool minPinLengthFieldSpecified; + + private int noOfBadAttemptsField; + + private bool noOfBadAttemptsFieldSpecified; + + private int certRenewalOverlapField; + + private bool certRenewalOverlapFieldSpecified; + + private bool renewExpiredCertsField; + + private bool renewExpiredCertsFieldSpecified; + + private string certRenewalMsgField; + + private bool certCleanUpField; + + private bool certCleanUpFieldSpecified; + + private PublishCert certPublishField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string clientName { + get { + return this.clientNameField; + } + set { + this.clientNameField = value; + this.RaisePropertyChanged("clientName"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public int maxPinLength { + get { + return this.maxPinLengthField; + } + set { + this.maxPinLengthField = value; + this.RaisePropertyChanged("maxPinLength"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool maxPinLengthSpecified { + get { + return this.maxPinLengthFieldSpecified; + } + set { + this.maxPinLengthFieldSpecified = value; + this.RaisePropertyChanged("maxPinLengthSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public int minPinLength { + get { + return this.minPinLengthField; + } + set { + this.minPinLengthField = value; + this.RaisePropertyChanged("minPinLength"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool minPinLengthSpecified { + get { + return this.minPinLengthFieldSpecified; + } + set { + this.minPinLengthFieldSpecified = value; + this.RaisePropertyChanged("minPinLengthSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public int noOfBadAttempts { + get { + return this.noOfBadAttemptsField; + } + set { + this.noOfBadAttemptsField = value; + this.RaisePropertyChanged("noOfBadAttempts"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool noOfBadAttemptsSpecified { + get { + return this.noOfBadAttemptsFieldSpecified; + } + set { + this.noOfBadAttemptsFieldSpecified = value; + this.RaisePropertyChanged("noOfBadAttemptsSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=4)] + public int certRenewalOverlap { + get { + return this.certRenewalOverlapField; + } + set { + this.certRenewalOverlapField = value; + this.RaisePropertyChanged("certRenewalOverlap"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool certRenewalOverlapSpecified { + get { + return this.certRenewalOverlapFieldSpecified; + } + set { + this.certRenewalOverlapFieldSpecified = value; + this.RaisePropertyChanged("certRenewalOverlapSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public bool renewExpiredCerts { + get { + return this.renewExpiredCertsField; + } + set { + this.renewExpiredCertsField = value; + this.RaisePropertyChanged("renewExpiredCerts"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool renewExpiredCertsSpecified { + get { + return this.renewExpiredCertsFieldSpecified; + } + set { + this.renewExpiredCertsFieldSpecified = value; + this.RaisePropertyChanged("renewExpiredCertsSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=6)] + public string certRenewalMsg { + get { + return this.certRenewalMsgField; + } + set { + this.certRenewalMsgField = value; + this.RaisePropertyChanged("certRenewalMsg"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=7)] + public bool certCleanUp { + get { + return this.certCleanUpField; + } + set { + this.certCleanUpField = value; + this.RaisePropertyChanged("certCleanUp"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool certCleanUpSpecified { + get { + return this.certCleanUpFieldSpecified; + } + set { + this.certCleanUpFieldSpecified = value; + this.RaisePropertyChanged("certCleanUpSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=8)] + public PublishCert certPublish { + get { + return this.certPublishField; + } + set { + this.certPublishField = value; + this.RaisePropertyChanged("certPublish"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=9)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class KeyEscrowPolicyType : object, System.ComponentModel.INotifyPropertyChanged { + + private bool keyEscrowEnabledField; + + private bool keyRecoveryDualAdminApprovalRequiredField; + + private bool keyRecoveryDualAdminApprovalRequiredFieldSpecified; + + private string keyEscrowDeploymentModeField; + + private System.Nullable doKeyRecoveryForAdditionalEnrollRequestField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public bool keyEscrowEnabled { + get { + return this.keyEscrowEnabledField; + } + set { + this.keyEscrowEnabledField = value; + this.RaisePropertyChanged("keyEscrowEnabled"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public bool keyRecoveryDualAdminApprovalRequired { + get { + return this.keyRecoveryDualAdminApprovalRequiredField; + } + set { + this.keyRecoveryDualAdminApprovalRequiredField = value; + this.RaisePropertyChanged("keyRecoveryDualAdminApprovalRequired"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool keyRecoveryDualAdminApprovalRequiredSpecified { + get { + return this.keyRecoveryDualAdminApprovalRequiredFieldSpecified; + } + set { + this.keyRecoveryDualAdminApprovalRequiredFieldSpecified = value; + this.RaisePropertyChanged("keyRecoveryDualAdminApprovalRequiredSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public string keyEscrowDeploymentMode { + get { + return this.keyEscrowDeploymentModeField; + } + set { + this.keyEscrowDeploymentModeField = value; + this.RaisePropertyChanged("keyEscrowDeploymentMode"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public System.Nullable doKeyRecoveryForAdditionalEnrollRequest { + get { + return this.doKeyRecoveryForAdditionalEnrollRequestField; + } + set { + this.doKeyRecoveryForAdditionalEnrollRequestField = value; + this.RaisePropertyChanged("doKeyRecoveryForAdditionalEnrollRequest"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=4)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class PrivateKeyInfo : object, System.ComponentModel.INotifyPropertyChanged { + + private int keysizeField; + + private KeyEscrowPolicyType keyEscrowPolicyField; + + private bool keyexportableField; + + private bool keyprotectField; + + private bool keyprotectFieldSpecified; + + private System.Nullable algorithmOIDReferenceField; + + private string[] cryptoProvidersField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public int keysize { + get { + return this.keysizeField; + } + set { + this.keysizeField = value; + this.RaisePropertyChanged("keysize"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public KeyEscrowPolicyType keyEscrowPolicy { + get { + return this.keyEscrowPolicyField; + } + set { + this.keyEscrowPolicyField = value; + this.RaisePropertyChanged("keyEscrowPolicy"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public bool keyexportable { + get { + return this.keyexportableField; + } + set { + this.keyexportableField = value; + this.RaisePropertyChanged("keyexportable"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public bool keyprotect { + get { + return this.keyprotectField; + } + set { + this.keyprotectField = value; + this.RaisePropertyChanged("keyprotect"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool keyprotectSpecified { + get { + return this.keyprotectFieldSpecified; + } + set { + this.keyprotectFieldSpecified = value; + this.RaisePropertyChanged("keyprotectSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=4)] + public System.Nullable algorithmOIDReference { + get { + return this.algorithmOIDReferenceField; + } + set { + this.algorithmOIDReferenceField = value; + this.RaisePropertyChanged("algorithmOIDReference"); + } + } + + /// + [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=5)] + [System.Xml.Serialization.XmlArrayItemAttribute("provider", IsNullable=false)] + public string[] cryptoProviders { + get { + return this.cryptoProvidersField; + } + set { + this.cryptoProvidersField = value; + this.RaisePropertyChanged("cryptoProviders"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class extensionValueType : object, System.ComponentModel.INotifyPropertyChanged { + + private bool mandatoryField; + + private bool mandatoryFieldSpecified; + + private string typeField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool mandatory { + get { + return this.mandatoryField; + } + set { + this.mandatoryField = value; + this.RaisePropertyChanged("mandatory"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool mandatorySpecified { + get { + return this.mandatoryFieldSpecified; + } + set { + this.mandatoryFieldSpecified = value; + this.RaisePropertyChanged("mandatorySpecified"); + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string type { + get { + return this.typeField; + } + set { + this.typeField = value; + this.RaisePropertyChanged("type"); + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public string Value { + get { + return this.valueField; + } + set { + this.valueField = value; + this.RaisePropertyChanged("Value"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class extensionSyntax : object, System.ComponentModel.INotifyPropertyChanged { + + private object[] itemsField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute("extensionAttributeNameValuePair", typeof(AttributeNameValuePairType), Order=0)] + [System.Xml.Serialization.XmlElementAttribute("extensionValue", typeof(extensionValueType), Order=0)] + public object[] Items { + get { + return this.itemsField; + } + set { + this.itemsField = value; + this.RaisePropertyChanged("Items"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=1)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class Extension : object, System.ComponentModel.INotifyPropertyChanged { + + private int extensionOIDReferenceField; + + private bool extensionCriticalFlagField; + + private extensionSyntax extensionSyntaxField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public int extensionOIDReference { + get { + return this.extensionOIDReferenceField; + } + set { + this.extensionOIDReferenceField = value; + this.RaisePropertyChanged("extensionOIDReference"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public bool extensionCriticalFlag { + get { + return this.extensionCriticalFlagField; + } + set { + this.extensionCriticalFlagField = value; + this.RaisePropertyChanged("extensionCriticalFlag"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public extensionSyntax extensionSyntax { + get { + return this.extensionSyntaxField; + } + set { + this.extensionSyntaxField = value; + this.RaisePropertyChanged("extensionSyntax"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class subjectNameAttribute : object, System.ComponentModel.INotifyPropertyChanged { + + private System.Nullable subjectNameAttributecountField; + + private AttributeNameValuePairType[] subjectNameAttributeNameValuePairField; + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)] + public System.Nullable subjectNameAttributecount { + get { + return this.subjectNameAttributecountField; + } + set { + this.subjectNameAttributecountField = value; + this.RaisePropertyChanged("subjectNameAttributecount"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("subjectNameAttributeNameValuePair", Order=1)] + public AttributeNameValuePairType[] subjectNameAttributeNameValuePair { + get { + return this.subjectNameAttributeNameValuePairField; + } + set { + this.subjectNameAttributeNameValuePairField = value; + this.RaisePropertyChanged("subjectNameAttributeNameValuePair"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class subjectName : object, System.ComponentModel.INotifyPropertyChanged { + + private subjectNameAttribute[] subjectNameAttributeField; + + private bool overrideSubjectNameFormatField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute("subjectNameAttribute", Order=0)] + public subjectNameAttribute[] subjectNameAttribute { + get { + return this.subjectNameAttributeField; + } + set { + this.subjectNameAttributeField = value; + this.RaisePropertyChanged("subjectNameAttribute"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public bool overrideSubjectNameFormat { + get { + return this.overrideSubjectNameFormatField; + } + set { + this.overrideSubjectNameFormatField = value; + this.RaisePropertyChanged("overrideSubjectNameFormat"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=2)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class OverrideValidity : object, System.ComponentModel.INotifyPropertyChanged { + + private bool overrideFlagField; + + private bool overrideFlagFieldSpecified; + + private validityNameValuePairNames[] overrideNameValuePairField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public bool overrideFlag { + get { + return this.overrideFlagField; + } + set { + this.overrideFlagField = value; + this.RaisePropertyChanged("overrideFlag"); + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool overrideFlagSpecified { + get { + return this.overrideFlagFieldSpecified; + } + set { + this.overrideFlagFieldSpecified = value; + this.RaisePropertyChanged("overrideFlagSpecified"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("overrideNameValuePair", Order=1)] + public validityNameValuePairNames[] overrideNameValuePair { + get { + return this.overrideNameValuePairField; + } + set { + this.overrideNameValuePairField = value; + this.RaisePropertyChanged("overrideNameValuePair"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public enum validityNameValuePairNames { + + /// + [System.Xml.Serialization.XmlEnumAttribute("$overrideValidityDays")] + overrideValidityDays, + + /// + [System.Xml.Serialization.XmlEnumAttribute("$overrideValidityStartDate")] + overrideValidityStartDate, + + /// + [System.Xml.Serialization.XmlEnumAttribute("$overrideValidityEndDate")] + overrideValidityEndDate, + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class CertificateValidity : object, System.ComponentModel.INotifyPropertyChanged { + + private ulong validityPeriodDaysField; + + private ulong renewalPeriodDaysField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public ulong validityPeriodDays { + get { + return this.validityPeriodDaysField; + } + set { + this.validityPeriodDaysField = value; + this.RaisePropertyChanged("validityPeriodDays"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public ulong renewalPeriodDays { + get { + return this.renewalPeriodDaysField; + } + set { + this.renewalPeriodDaysField = value; + this.RaisePropertyChanged("renewalPeriodDays"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class Attributes : object, System.ComponentModel.INotifyPropertyChanged { + + private int policySchemaField; + + private CertificateValidity certificateValidityField; + + private OverrideValidity certificateOverrideValidityField; + + private subjectName subjectNameInfoField; + + private Extension[] extensionsField; + + private PrivateKeyInfo privateKeyAttributesField; + + private ClientPolicy clientPolicyField; + + private SystemInformation systemInfoField; + + private RAPolicy rAPolicyField; + + private SeatInfoType seatIdInfoField; + + private ApplicationInstructionsType applicationInstructionsField; + + private string deploymentModeField; + + private string statusField; + + private MigrationOIDCollection migrationOIDsField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public int policySchema { + get { + return this.policySchemaField; + } + set { + this.policySchemaField = value; + this.RaisePropertyChanged("policySchema"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public CertificateValidity certificateValidity { + get { + return this.certificateValidityField; + } + set { + this.certificateValidityField = value; + this.RaisePropertyChanged("certificateValidity"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public OverrideValidity certificateOverrideValidity { + get { + return this.certificateOverrideValidityField; + } + set { + this.certificateOverrideValidityField = value; + this.RaisePropertyChanged("certificateOverrideValidity"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=3)] + public subjectName subjectNameInfo { + get { + return this.subjectNameInfoField; + } + set { + this.subjectNameInfoField = value; + this.RaisePropertyChanged("subjectNameInfo"); + } + } + + /// + [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=4)] + [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] + public Extension[] extensions { + get { + return this.extensionsField; + } + set { + this.extensionsField = value; + this.RaisePropertyChanged("extensions"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=5)] + public PrivateKeyInfo privateKeyAttributes { + get { + return this.privateKeyAttributesField; + } + set { + this.privateKeyAttributesField = value; + this.RaisePropertyChanged("privateKeyAttributes"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=6)] + public ClientPolicy clientPolicy { + get { + return this.clientPolicyField; + } + set { + this.clientPolicyField = value; + this.RaisePropertyChanged("clientPolicy"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=7)] + public SystemInformation systemInfo { + get { + return this.systemInfoField; + } + set { + this.systemInfoField = value; + this.RaisePropertyChanged("systemInfo"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=8)] + public RAPolicy rAPolicy { + get { + return this.rAPolicyField; + } + set { + this.rAPolicyField = value; + this.RaisePropertyChanged("rAPolicy"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=9)] + public SeatInfoType seatIdInfo { + get { + return this.seatIdInfoField; + } + set { + this.seatIdInfoField = value; + this.RaisePropertyChanged("seatIdInfo"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=10)] + public ApplicationInstructionsType applicationInstructions { + get { + return this.applicationInstructionsField; + } + set { + this.applicationInstructionsField = value; + this.RaisePropertyChanged("applicationInstructions"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=11)] + public string deploymentMode { + get { + return this.deploymentModeField; + } + set { + this.deploymentModeField = value; + this.RaisePropertyChanged("deploymentMode"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=12)] + public string status { + get { + return this.statusField; + } + set { + this.statusField = value; + this.RaisePropertyChanged("status"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=13)] + public MigrationOIDCollection migrationOIDs { + get { + return this.migrationOIDsField; + } + set { + this.migrationOIDsField = value; + this.RaisePropertyChanged("migrationOIDs"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=14)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class CertificateEnrollmentPolicy : object, System.ComponentModel.INotifyPropertyChanged { + + private int policyOIDReferenceField; + + private int[] cAsField; + + private Attributes attributesField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public int policyOIDReference { + get { + return this.policyOIDReferenceField; + } + set { + this.policyOIDReferenceField = value; + this.RaisePropertyChanged("policyOIDReference"); + } + } + + /// + [System.Xml.Serialization.XmlArrayAttribute(Order=1)] + [System.Xml.Serialization.XmlArrayItemAttribute("cAReference", IsNullable=false)] + public int[] cAs { + get { + return this.cAsField; + } + set { + this.cAsField = value; + this.RaisePropertyChanged("cAs"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public Attributes attributes { + get { + return this.attributesField; + } + set { + this.attributesField = value; + this.RaisePropertyChanged("attributes"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class Response : object, System.ComponentModel.INotifyPropertyChanged { + + private string policyIDField; + + private string policyFriendlyNameField; + + private System.Nullable nextUpdateHoursField; + + private bool policiesNotChangedField; + + private CertificateEnrollmentPolicy[] policiesField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string policyID { + get { + return this.policyIDField; + } + set { + this.policyIDField = value; + this.RaisePropertyChanged("policyID"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string policyFriendlyName { + get { + return this.policyFriendlyNameField; + } + set { + this.policyFriendlyNameField = value; + this.RaisePropertyChanged("policyFriendlyName"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=2)] + public System.Nullable nextUpdateHours { + get { + return this.nextUpdateHoursField; + } + set { + this.nextUpdateHoursField = value; + this.RaisePropertyChanged("nextUpdateHours"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=3)] + public bool policiesNotChanged { + get { + return this.policiesNotChangedField; + } + set { + this.policiesNotChangedField = value; + this.RaisePropertyChanged("policiesNotChanged"); + } + } + + /// + [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=4)] + [System.Xml.Serialization.XmlArrayItemAttribute("policy", IsNullable=false)] + public CertificateEnrollmentPolicy[] policies { + get { + return this.policiesField; + } + set { + this.policiesField = value; + this.RaisePropertyChanged("policies"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=5)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class RequestFilter : object, System.ComponentModel.INotifyPropertyChanged { + + private string[] policyIDsField; + + private System.Xml.XmlElement[] anyField; + + /// + [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=0)] + [System.Xml.Serialization.XmlArrayItemAttribute("oid", IsNullable=false)] + public string[] policyIDs { + get { + return this.policyIDsField; + } + set { + this.policyIDsField = value; + this.RaisePropertyChanged("policyIDs"); + } + } + + /// + [System.Xml.Serialization.XmlAnyElementAttribute(Order=1)] + public System.Xml.XmlElement[] Any { + get { + return this.anyField; + } + set { + this.anyField = value; + this.RaisePropertyChanged("Any"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy")] + public partial class getPoliciesResponse : object, System.ComponentModel.INotifyPropertyChanged { + + private string clientTransactionIDField; + + private string serverTransactionIDField; + + private Response responseField; + + private CA[] cAsField; + + private OID[] oIDsField; + + private byte[] signedEnrollmentPolicyField; + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=0)] + public string clientTransactionID { + get { + return this.clientTransactionIDField; + } + set { + this.clientTransactionIDField = value; + this.RaisePropertyChanged("clientTransactionID"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=1)] + public string serverTransactionID { + get { + return this.serverTransactionIDField; + } + set { + this.serverTransactionIDField = value; + this.RaisePropertyChanged("serverTransactionID"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(Order=2)] + public Response response { + get { + return this.responseField; + } + set { + this.responseField = value; + this.RaisePropertyChanged("response"); + } + } + + /// + [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=3)] + [System.Xml.Serialization.XmlArrayItemAttribute("cA", IsNullable=false)] + public CA[] cAs { + get { + return this.cAsField; + } + set { + this.cAsField = value; + this.RaisePropertyChanged("cAs"); + } + } + + /// + [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=4)] + [System.Xml.Serialization.XmlArrayItemAttribute("oID", IsNullable=false)] + public OID[] oIDs { + get { + return this.oIDsField; + } + set { + this.oIDsField = value; + this.RaisePropertyChanged("oIDs"); + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=5)] + public byte[] signedEnrollmentPolicy { + get { + return this.signedEnrollmentPolicyField; + } + set { + this.signedEnrollmentPolicyField = value; + this.RaisePropertyChanged("signedEnrollmentPolicy"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] + public partial class requestPoliciesRequest { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy", Order=0)] + public ipn_sqlclr.Test.policyService.getPolicies getPolicies; + + public requestPoliciesRequest() { + } + + public requestPoliciesRequest(ipn_sqlclr.Test.policyService.getPolicies getPolicies) { + this.getPolicies = getPolicies; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] + public partial class requestPoliciesResponse { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://schemas.verisign.com/pkiservices/2009/07/policy", Order=0)] + public ipn_sqlclr.Test.policyService.getPoliciesResponse getPoliciesResponse; + + public requestPoliciesResponse() { + } + + public requestPoliciesResponse(ipn_sqlclr.Test.policyService.getPoliciesResponse getPoliciesResponse) { + this.getPoliciesResponse = getPoliciesResponse; + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface policyChannel : ipn_sqlclr.Test.policyService.policy, System.ServiceModel.IClientChannel { + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class policyClient : System.ServiceModel.ClientBase, ipn_sqlclr.Test.policyService.policy { + + public policyClient() { + } + + public policyClient(string endpointConfigurationName) : + base(endpointConfigurationName) { + } + + public policyClient(string endpointConfigurationName, string remoteAddress) : + base(endpointConfigurationName, remoteAddress) { + } + + public policyClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : + base(endpointConfigurationName, remoteAddress) { + } + + public policyClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : + base(binding, remoteAddress) { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + ipn_sqlclr.Test.policyService.requestPoliciesResponse ipn_sqlclr.Test.policyService.policy.requestPolicies(ipn_sqlclr.Test.policyService.requestPoliciesRequest request) { + return base.Channel.requestPolicies(request); + } + + public ipn_sqlclr.Test.policyService.getPoliciesResponse requestPolicies(ipn_sqlclr.Test.policyService.getPolicies getPolicies) { + ipn_sqlclr.Test.policyService.requestPoliciesRequest inValue = new ipn_sqlclr.Test.policyService.requestPoliciesRequest(); + inValue.getPolicies = getPolicies; + ipn_sqlclr.Test.policyService.requestPoliciesResponse retVal = ((ipn_sqlclr.Test.policyService.policy)(this)).requestPolicies(inValue); + return retVal.getPoliciesResponse; + } + } +} diff --git a/unit-tests/ipn_sqlclr.Test/Service References/policyService/Reference.svcmap b/unit-tests/ipn_sqlclr.Test/Service References/policyService/Reference.svcmap new file mode 100644 index 0000000..f961e0d --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/Service References/policyService/Reference.svcmap @@ -0,0 +1,31 @@ + + + + false + true + + false + false + false + + + true + Auto + true + true + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/unit-tests/ipn_sqlclr.Test/Service References/policyService/configuration.svcinfo b/unit-tests/ipn_sqlclr.Test/Service References/policyService/configuration.svcinfo new file mode 100644 index 0000000..e99827d --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/Service References/policyService/configuration.svcinfo @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/unit-tests/ipn_sqlclr.Test/Service References/policyService/configuration91.svcinfo b/unit-tests/ipn_sqlclr.Test/Service References/policyService/configuration91.svcinfo new file mode 100644 index 0000000..e6a1487 --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/Service References/policyService/configuration91.svcinfo @@ -0,0 +1,310 @@ + + + + + + + requestPoliciesServiceSOAP + + + + + + + + + + + + + + + + + + + + + StrongWildcard + + + + + + 65536 + + + + + + + + + System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + System.Text.UTF8Encoding + + + Buffered + + + + + + Text + + + System.ServiceModel.Configuration.BasicHttpSecurityElement + + + Transport + + + System.ServiceModel.Configuration.HttpTransportSecurityElement + + + None + + + None + + + System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement + + + Never + + + TransportSelected + + + (Collection) + + + + + + System.ServiceModel.Configuration.BasicHttpMessageSecurityElement + + + UserName + + + Default + + + + + + + requestPoliciesServiceSOAP1 + + + + + + + + + + + + + + + + + + + + + StrongWildcard + + + + + + 65536 + + + + + + + + + System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + System.Text.UTF8Encoding + + + Buffered + + + + + + Text + + + System.ServiceModel.Configuration.BasicHttpSecurityElement + + + None + + + System.ServiceModel.Configuration.HttpTransportSecurityElement + + + None + + + None + + + System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement + + + Never + + + TransportSelected + + + (Collection) + + + + + + System.ServiceModel.Configuration.BasicHttpMessageSecurityElement + + + UserName + + + Default + + + + + + + + + https://pki-ws.symauth.com/pki-ws/policyService + + + + + + basicHttpBinding + + + requestPoliciesServiceSOAP + + + policyService.policy + + + System.ServiceModel.Configuration.AddressHeaderCollectionElement + + + <Header /> + + + System.ServiceModel.Configuration.IdentityElement + + + System.ServiceModel.Configuration.UserPrincipalNameElement + + + + + + System.ServiceModel.Configuration.ServicePrincipalNameElement + + + + + + System.ServiceModel.Configuration.DnsElement + + + + + + System.ServiceModel.Configuration.RsaElement + + + + + + System.ServiceModel.Configuration.CertificateElement + + + + + + System.ServiceModel.Configuration.CertificateReferenceElement + + + My + + + LocalMachine + + + FindBySubjectDistinguishedName + + + + + + False + + + requestPoliciesServiceSOAP + + + + + + + + + + + \ No newline at end of file diff --git a/unit-tests/ipn_sqlclr.Test/Service References/policyService/ipn_sqlclr.Test.policyService.getPoliciesResponse.datasource b/unit-tests/ipn_sqlclr.Test/Service References/policyService/ipn_sqlclr.Test.policyService.getPoliciesResponse.datasource new file mode 100644 index 0000000..a7bdd87 --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/Service References/policyService/ipn_sqlclr.Test.policyService.getPoliciesResponse.datasource @@ -0,0 +1,10 @@ + + + + ipn_sqlclr.Test.policyService.getPoliciesResponse, Service References.policyService.Reference.cs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + \ No newline at end of file diff --git a/unit-tests/ipn_sqlclr.Test/TaggantWebTest.cs b/unit-tests/ipn_sqlclr.Test/TaggantWebTest.cs new file mode 100644 index 0000000..970048f --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/TaggantWebTest.cs @@ -0,0 +1,129 @@ +using System.Collections.Generic; +using Microsoft.VisualStudio.TestTools.UnitTesting; + + +namespace ipn_sqlclr.Test +{ + /// + /// Summary description for TaggantWebTest + /// + [TestClass] + public class TaggantWebTest + { + public TaggantWebTest() + { + // + // TODO: Add constructor logic here + // + } + + private TestContext testContextInstance; + + /// + ///Gets or sets the test context which provides + ///information about and functionality for the current test run. + /// + public TestContext TestContext + { + get { return testContextInstance; } + set { testContextInstance = value; } + } + + #region Additional test attributes + + // + // You can use the following additional attributes as you write your tests: + // + // Use ClassInitialize to run code before running the first test in the class + // [ClassInitialize()] + // public static void MyClassInitialize(TestContext testContext) { } + // + // Use ClassCleanup to run code after all tests in a class have run + // [ClassCleanup()] + // public static void MyClassCleanup() { } + // + // Use TestInitialize to run code before running each test + // [TestInitialize()] + // public void MyTestInitialize() { } + // + // Use TestCleanup to run code after each test has run + // [TestCleanup()] + // public void MyTestCleanup() { } + // + + #endregion + + [TestMethod] + public void PK() + { + string s = (string) UserDefinedFunctions.TaggantPrivateKeyGenerateNew(); + + } + + [TestMethod] + public void WS() + { + var tc = new TaggantConfig() + { + { "CertificateProfileOID", "2.16.840.1.113733.1.16.1.3.1.4.1.38113944" }, + { "ClientCertificate", "Registration Authority 1409598283849" }, + { "CsrAlgorithm", "MD5withRSA" }, + { "CsrSubject", "O=VMPSoft,OU=Build Server,E=support@vmpsoft.com,L=Yekaterinburg,ST=Ural,C=RU,CN=support@vmpsoft.com" }, + { "EnrollmentUrl", "https://pki-ws.symauth.com/pki-ws/enrollmentService" }, + { "EnrollVersion", "2.0" }, + { "PolicyUrl", "https://pki-ws.symauth.com/pki-ws/policyService" }, + { "PolicyVersion", "2.0" }, + }; + tc.ClientCertificate = UserDefinedFunctions.LocateCertificate(tc["ClientCertificate"]); + var log = new List(); + TaggantWebService.GetPolicies(tc, log); + + } + [TestMethod] + public void WS2() + { + var tc = new TaggantConfig() + { + { "CertificateProfileOid", "2.16.840.1.113733.1.16.1.3.1.4.1.38113944" }, + { "ClientCertificate", "Registration Authority 1409598283849" }, + { "CsrAlgorithm", "MD5withRSA" }, + { "CsrSubject", "O=VMPSoft,OU=Build Server,E=support@vmpsoft.com,L=Yekaterinburg,ST=Ural,C=RU,CN=support@vmpsoft.com" }, + { "EnrollmentUrl", "https://pki-ws.symauth.com/pki-ws/enrollmentService" }, + { "EnrollVersion", "2.0" }, + { "PolicyUrl", "https://pki-ws.symauth.com/pki-ws/policyService" }, + { "PolicyVersion", "2.0" }, + }; + tc.ClientCertificate = UserDefinedFunctions.LocateCertificate(tc["ClientCertificate"]); + var log = new List(); + TaggantWebService.CertRequestNew(tc, "ipn2217", "sqhunter123@mail.ru", "-----BEGIN RSA PRIVATE KEY-----\n" + + "MIIEpAIBAAKCAQEAhjXJd3dMP5BE1mAXh3sAIiK9xUdw3R7lgRA0PtwIDdA1UX5v\n" + + "QHAWk7d5HwDB3V3T1WBRW3tFyjq7YRPB6QM0d2qPi+rpDsT6QlQSCAcVgdyiS1KW" + + "4OYVlVq2vjzVOeFhlgyaSRP06GGNYXBAL9e2yky7hs45OCdMGErLNCJ+Ja97wPtv" + + "Hk03C3ml9kvHegVecMp+5piy5fni+UsJ7toPZFo7HAbB23dc0Rfxj8BiGTM08yuQ" + + "U6nmpjDrtRrOyzIJDIriAKMJ4eTc8rF/y9uG3/ibwmkSH0MtYIvSfyim43ofL8rT" + + "ijhsO0yiMDMSAJyuAJCZjsCAYTMnrsas8c1P9QIDAQABAoIBAC2B43RcwT/0XUML" + + "hi7sKBlrCknwdXak2VEv+2ctGJYGeW3On06MMzuXRLycdx/mhsOdSzjnzbxKueqq" + + "1l96NLohKddZqfjWFb2T4CFUtZg5BdbghERx//OKtNhArFRZ9cr5Lv+EgtCg812M" + + "wFb4oARsjFGjb4d427aI9eoRoBCKt9A9CfqwxHyvclgtIG3W7FazvZ8s1KXhTh4i" + + "N3HHSUkxaADKl6uO4fclq+/tX1mffitIfOxlbZHUsOE1y8tKh8e0onWQ0l2F4aio" + + "SbBhgNo6QiihnVpfpYKn+fMqrZ3qDaky7r94avR7KHneMIwJG5diBrpf5+36xzi6" + + "0Jzy+WkCgYEAzltVepiWZGvmvofGO+PwbVtSYQQt1htE5bnfL4fwPYjSgPiboSTw" + + "5LBVHQWcaGqmNBrmnE1r0vk4Dam/a/Ok2M3+lZXzx3nJTGTjd3PzFP83WnPdplkE" + + "SHau7/EYc8tWGtEGzzUJiLT12n7EFxk8YASpL1znFeKhuDsVgJBkhHsCgYEApn88" + + "c5G7iE1GYCTSclKyU9avBJNiXNdbSy0fnizGQaSp1f3hCtiYbE7Yf6QXfu9gVKf+" + + "FD9a7HJa04QgRr5RmBV8ToLWzBdTZoud2fqO61lhePBQC+d1SyO5BwOzD9vk8BSR" + + "vmaoQoJf8GSzrmhcABo0zkD6uomYohO0wI4Q6k8CgYEAtBpU9YYdpJHkNyCrbHQZ" + + "0Ggm8xPBqZ/tNw9N8t8TV7GGABh7RF7IfOBFuOm/xAZo/wsHgR21YNIxEQO5VU+1" + + "7Z+EdiwFM3FgtnNLcGNbolTJjAGaT2hb657iOfrT26R5hzguWESzCITgGw4OuRZG" + + "cos+2l6cNaayfOfccXQUtucCgYBa+6qoKNoG6NttTJHnwUMLx4RKhtO4kkKkORtP" + + "D36jfn0EoECq8aORhCCQ17WzOtI0ULzqiZiBHxh8/3W30ua5qfwM1zjTvGdp4R+4" + + "b1BMUcKPGRtU9f3Futawe5gNMYfQnhzqpCSMe7w7nHwH8aVctPVoRF//MZPD9erP" + + "UpLxxwKBgQC121tfFNQwNuhQjdz/AD/IjkyDzhAKpOuVrbeFq+Hl31LZN/YBNJbX" + + "7jzQuQ4Pn+D+7ID4s/RVOg/zNvQ9AbWgDmfQ5+7RoEoooM2U0l6DzbVp6MaSw2mT" + + "l6VgW2QubgrqIlt9Rk+zX6pSlN8LDjosYEbnzOhZ5B0Sc20RSkUcjg==\n" + + "-----END RSA PRIVATE KEY-----", log); + + } + + } +} diff --git a/unit-tests/ipn_sqlclr.Test/VmpLicenseKeyTest.cs b/unit-tests/ipn_sqlclr.Test/VmpLicenseKeyTest.cs new file mode 100644 index 0000000..8bf701c --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/VmpLicenseKeyTest.cs @@ -0,0 +1,73 @@ +using System; +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace ipn_sqlclr.Test +{ + [TestClass] + public class VmpLicenseKeyTest + { + /*[TestMethod] не проходит почему-то + public void TestRsa() + { + var r = new Random(); + var data1 = new byte[3072 / 8]; + for (int i = 0; i < data1.Length; i++) data1[i] = (byte)r.Next(256); + + var encr1 = Rsa.Encrypt(data1); + var decr1 = Rsa.Decrypt(encr1); + + Assert.AreNotEqual(data1, encr1); + Assert.AreEqual(data1, decr1); + }*/ + + [TestMethod] + public void TestGenerateAndParseKey() + { + const int productId = 5; + const string name = "Иван ПетровААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААА"; + const string mail = "petrov@mail.ruАААААААААААААААААААААААААААААААААААААААААААААААААААААААААААААА"; + var maxBuild = new DateTime(2015, 12, 28); + var key = Keygen.GenerateKey(productId, name, mail, maxBuild); + + int productId1; + string name1, mail1; + DateTime maxBuild1; + Keygen.ParseKey(key, out productId1, out name1, out mail1, out maxBuild1); + + Assert.AreEqual(productId, productId1); + Assert.AreEqual(name, name1); + Assert.AreEqual(mail, mail1); + Assert.AreEqual(maxBuild, maxBuild1); + + Keygen.ParseKey("FgeTRyB93RJeABJN83qKo7mTEvXHGHwYXmZ6pGY5o1X09bc8fmmebq1mryX5yHUWb6F+cauzsLxUyG+uTQBT9zC31EJPQqG9YgaRbOPPS9A7u1HXZA8x491ew0lDKJISy8TYNsjTJ2vB903jW+/A/UVc2+cgDCF3eqztkvYBEas6Y40Hj9A2ylJVYsYWq41RCZyDcXZtlbnuk8W2CDBAk+PGZeUPjEq/oasnTCeKdkO4NY2QVrFzvC/msT+7FWAaBNwe5OQYZLCH875qFVw0H2B9xcnVuIAHAYD00H0Hzk9sf/jAGx4l5CS8FQ4tshZfEllF6CcwVQuRdGz07gQWAQ==" + ,out productId1, out name1, out mail1, out maxBuild1); + } + + [TestMethod] + public void TestParseOldKey() + { + const int productId = -1; + const string name = "道恭 陈"; + const string mail = "sales@sky-deep.com"; + var maxBuild = new DateTime(2015, 12, 13); + const string key = "m/j+Km6Y7Kb5AgV0pfLr/Bmw3z9EP/SNv9mawGK0PK8mXWMcJijSzfMbVakJa8ctaZVaNceeanc6" + + "FuurAcyDEpppwS71/t6SoI6Kxc/BUmcHjLlfrWhxk5CrQqFVqyQ+liZEhglHuCE8GRwlPgm60JVv" + + "hCsQBEDeIywTp2GujhjhGra7ojML/guuhRS6W1ILSSkfZriDuCFkkStLgi9gT8GGwX1GUdaXz7Wn" + + "IxrcSYt5OLuPOcPULPUgVr1tB0YopWt/7g3g9jvRxVTThBxcAr+IoIf8RtaTTPIMDae9OZTDL6Pv" + + "p10cUj1HGC1kB8whLWyGdqbhpyg53vUc4Y7FdHe3zUltZA3c3p4/DdZwrU+jrMC/SdzJVuo1MM4p" + + "ZefRwH2f1MYKCUT2zn67f87Sgo2LMmSjWnaORHxrUtskEyguRYcgh0dy6RApI07ZXrK06ZCQu9Ns" + + "zdN3vkxo+NV9clNmVffE7GfRDlcmczvffGcuEUYN59juPnp/vMhFpH1r"; + + int productId1; + string name1, mail1; + DateTime maxBuild1; + Keygen.ParseKey(key, out productId1, out name1, out mail1, out maxBuild1); + + Assert.AreEqual(productId, productId1); + Assert.AreEqual(name, name1); + Assert.AreEqual(mail, mail1); + Assert.AreEqual(maxBuild, maxBuild1); + } + + } +} diff --git a/unit-tests/ipn_sqlclr.Test/app.config b/unit-tests/ipn_sqlclr.Test/app.config new file mode 100644 index 0000000..ce55b93 --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/app.config @@ -0,0 +1,3 @@ + + + diff --git a/unit-tests/ipn_sqlclr.Test/ipn_sqlclr.Test.csproj b/unit-tests/ipn_sqlclr.Test/ipn_sqlclr.Test.csproj new file mode 100644 index 0000000..25b74e1 --- /dev/null +++ b/unit-tests/ipn_sqlclr.Test/ipn_sqlclr.Test.csproj @@ -0,0 +1,128 @@ + + + + Debug + AnyCPU + {F90215BE-45F4-422B-AE75-A2E7DDAC1758} + Library + Properties + ipn_sqlclr.Test + ipn_sqlclr.Test + v4.5 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages + False + UnitTest + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + True + True + Reference.svcmap + + + + + + + {046364af-635b-4f62-9c8c-d3866b8f622f} + ipn_sqlclr + + + + + + + + + + Designer + + + Reference.svcmap + + + + + + + + + + + + + + WCF Proxy Generator + Reference.cs + + + + + + + False + + + False + + + False + + + False + + + + + + + + \ No newline at end of file -- cgit v1.2.3