diff options
author | Filip Navara <filip.navara@gmail.com> | 2018-06-13 19:06:16 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-06-14 15:54:50 +0300 |
commit | ca8bc154a3ed46de33b136c3ad61932519c7511f (patch) | |
tree | c771df04067ee6b02edcc8316ea684f2034a9325 | |
parent | da64bdfbd70c2dd641fe033af14994758597501d (diff) |
Remove CmsSigner property setters not present in .NET Framework.
-rw-r--r-- | src/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.cs | 6 | ||||
-rw-r--r-- | src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.cs b/src/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.cs index 044de82df3..79ecb125bb 100644 --- a/src/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.cs +++ b/src/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.cs @@ -91,9 +91,9 @@ namespace System.Security.Cryptography.Pkcs public SubjectIdentifierType SignerIdentifierType { get => throw null; set => throw null; } public System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate { get => throw null; set => throw null; } public Oid DigestAlgorithm { get => throw null; set => throw null; } - public CryptographicAttributeObjectCollection SignedAttributes { get => throw null; set => throw null; } - public CryptographicAttributeObjectCollection UnsignedAttributes { get => throw null; set => throw null; } - public System.Security.Cryptography.X509Certificates.X509Certificate2Collection Certificates { get => throw null; set => throw null; } + public CryptographicAttributeObjectCollection SignedAttributes { get => throw null; } + public CryptographicAttributeObjectCollection UnsignedAttributes { get => throw null; } + public System.Security.Cryptography.X509Certificates.X509Certificate2Collection Certificates { get => throw null; } public System.Security.Cryptography.X509Certificates.X509IncludeOption IncludeOption { get => throw null; set => throw null; } } public sealed partial class ContentInfo diff --git a/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs b/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs index 30f49b6570..4a5b1b23d2 100644 --- a/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs +++ b/src/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSigner.cs @@ -22,11 +22,12 @@ namespace System.Security.Cryptography.Pkcs private SubjectIdentifierType _signerIdentifierType; public X509Certificate2 Certificate { get; set; } - public X509Certificate2Collection Certificates { get; set; } = new X509Certificate2Collection(); + public AsymmetricAlgorithm PrivateKey { get; set; } + public X509Certificate2Collection Certificates { get; private set; } = new X509Certificate2Collection(); public Oid DigestAlgorithm { get; set; } public X509IncludeOption IncludeOption { get; set; } - public CryptographicAttributeObjectCollection SignedAttributes { get; set; } = new CryptographicAttributeObjectCollection(); - public CryptographicAttributeObjectCollection UnsignedAttributes { get; set; } = new CryptographicAttributeObjectCollection(); + public CryptographicAttributeObjectCollection SignedAttributes { get; private set; } = new CryptographicAttributeObjectCollection(); + public CryptographicAttributeObjectCollection UnsignedAttributes { get; private set; } = new CryptographicAttributeObjectCollection(); public SubjectIdentifierType SignerIdentifierType { |