Exclude GostXades from Hcs namespace
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
using Hcs.Client.Internal;
|
using Hcs.Client.Internal;
|
||||||
using Hcs.GostXades;
|
using GostXades;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.ServiceModel;
|
using System.ServiceModel;
|
||||||
using System.ServiceModel.Channels;
|
using System.ServiceModel.Channels;
|
||||||
|
|||||||
@ -31,9 +31,9 @@ namespace Hcs.ClientApi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Hcs.GostXades.CryptoProviderTypeEnum GetProviderType(this X509Certificate2 certificate)
|
public static GostXades.CryptoProviderTypeEnum GetProviderType(this X509Certificate2 certificate)
|
||||||
{
|
{
|
||||||
return (Hcs.GostXades.CryptoProviderTypeEnum)GetProviderInfo(certificate).Item1;
|
return (GostXades.CryptoProviderTypeEnum)GetProviderInfo(certificate).Item1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Tuple<int, string> GetProviderInfo(this X509Certificate2 certificate)
|
public static Tuple<int, string> GetProviderInfo(this X509Certificate2 certificate)
|
||||||
|
|||||||
@ -20,7 +20,7 @@ namespace Hcs.ClientApi
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Тип криптопровайдера полученный из сертификата
|
/// Тип криптопровайдера полученный из сертификата
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Hcs.GostXades.CryptoProviderTypeEnum CryptoProviderType { get; internal set; }
|
public GostXades.CryptoProviderTypeEnum CryptoProviderType { get; internal set; }
|
||||||
|
|
||||||
public GostCryptography.Base.ProviderType GostCryptoProviderType =>
|
public GostCryptography.Base.ProviderType GostCryptoProviderType =>
|
||||||
(GostCryptography.Base.ProviderType)CryptoProviderType;
|
(GostCryptography.Base.ProviderType)CryptoProviderType;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
using Hcs.GostXades;
|
using GostXades;
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.ServiceModel;
|
using System.ServiceModel;
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
using Microsoft.Xades;
|
using Microsoft.Xades;
|
||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Abstractions
|
namespace GostXades.Abstractions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> XML <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> XML <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|||||||
@ -3,7 +3,7 @@ using System.Security.Cryptography;
|
|||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
using System.Security.Cryptography.Xml;
|
using System.Security.Cryptography.Xml;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Abstractions
|
namespace GostXades.Abstractions
|
||||||
{
|
{
|
||||||
public interface ICryptoProvider
|
public interface ICryptoProvider
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
namespace Hcs.GostXades.Abstractions
|
namespace GostXades.Abstractions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
namespace Hcs.GostXades.Abstractions
|
namespace GostXades.Abstractions
|
||||||
{
|
{
|
||||||
public interface IXadesService
|
public interface IXadesService
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
using Hcs.GostXades.Abstractions;
|
using GostXades.Abstractions;
|
||||||
using Hcs.GostXades.Helpers;
|
using GostXades.Helpers;
|
||||||
using Microsoft.Xades;
|
using Microsoft.Xades;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -7,7 +7,7 @@ using System.Linq;
|
|||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
using System.Security.Cryptography.Xml;
|
using System.Security.Cryptography.Xml;
|
||||||
|
|
||||||
namespace Hcs.GostXades
|
namespace GostXades
|
||||||
{
|
{
|
||||||
public class CertificateMatcher : ICertificateMatcher
|
public class CertificateMatcher : ICertificateMatcher
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
namespace Hcs.GostXades
|
namespace GostXades
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Типы криптопровайдеров
|
/// Типы криптопровайдеров
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
using GostCryptography.Config;
|
using GostCryptography.Config;
|
||||||
using GostCryptography.Gost_R3410;
|
using GostCryptography.Gost_R3410;
|
||||||
using GostCryptography.Gost_R3411;
|
using GostCryptography.Gost_R3411;
|
||||||
using Hcs.GostXades.Abstractions;
|
using GostXades.Abstractions;
|
||||||
using Hcs.GostXades.Helpers;
|
using GostXades.Helpers;
|
||||||
using Microsoft.Xades;
|
using Microsoft.Xades;
|
||||||
using Org.BouncyCastle.X509;
|
using Org.BouncyCastle.X509;
|
||||||
using System;
|
using System;
|
||||||
@ -12,7 +12,7 @@ using System.Security.Cryptography;
|
|||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
using System.Security.Cryptography.Xml;
|
using System.Security.Cryptography.Xml;
|
||||||
|
|
||||||
namespace Hcs.GostXades
|
namespace GostXades
|
||||||
{
|
{
|
||||||
public class GostCryptoProvider : ICryptoProvider
|
public class GostCryptoProvider : ICryptoProvider
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
using Hcs.GostXades.Abstractions;
|
using GostXades.Abstractions;
|
||||||
using Hcs.GostXades.Helpers;
|
using GostXades.Helpers;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Hcs.GostXades
|
namespace GostXades
|
||||||
{
|
{
|
||||||
public class GostXadesBesService : IXadesService
|
public class GostXadesBesService : IXadesService
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class ArrayHelper
|
public static class ArrayHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class CertificateHelper
|
public static class CertificateHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class CollectionHelper
|
public static class CollectionHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class ConvertHelper
|
public static class ConvertHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class DateTimeHelper
|
public static class DateTimeHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class EnumerableHelper
|
public static class EnumerableHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
using GostCryptography.Config;
|
using GostCryptography.Config;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class GostHashAlgorithmHelper
|
public static class GostHashAlgorithmHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,7 +3,7 @@ using System.Security.Cryptography.X509Certificates;
|
|||||||
using System.Security.Cryptography.Xml;
|
using System.Security.Cryptography.Xml;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class KeyInfoHelper
|
public static class KeyInfoHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class X509NameHelper
|
public static class X509NameHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
using Microsoft.Xades;
|
using Microsoft.Xades;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class XadesSignedXmlHelper
|
public static class XadesSignedXmlHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
namespace Hcs.GostXades.Helpers
|
namespace GostXades.Helpers
|
||||||
{
|
{
|
||||||
public static class XmlDocumentHelper
|
public static class XmlDocumentHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
using Hcs.GostXades.Abstractions;
|
using GostXades.Abstractions;
|
||||||
using Hcs.GostXades.Helpers;
|
using GostXades.Helpers;
|
||||||
using Org.BouncyCastle.Asn1.X509;
|
using Org.BouncyCastle.Asn1.X509;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace Hcs.GostXades
|
namespace GostXades
|
||||||
{
|
{
|
||||||
public class IssuerComparer : IIssuerComparer
|
public class IssuerComparer : IIssuerComparer
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
using Hcs.GostXades.Abstractions;
|
using GostXades.Abstractions;
|
||||||
using Hcs.GostXades.Helpers;
|
using GostXades.Helpers;
|
||||||
using Microsoft.Xades;
|
using Microsoft.Xades;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -7,7 +7,7 @@ using System.Security.Cryptography;
|
|||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
namespace Hcs.GostXades
|
namespace GostXades
|
||||||
{
|
{
|
||||||
public class XadesBesSignedXml : XadesSignedXml
|
public class XadesBesSignedXml : XadesSignedXml
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace Hcs.GostXades
|
namespace GostXades
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class XadesBesValidationException : Exception
|
public class XadesBesValidationException : Exception
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
|
|
||||||
namespace Hcs.GostXades
|
namespace GostXades
|
||||||
{
|
{
|
||||||
public class XadesInfo
|
public class XadesInfo
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user