<PackageReference Include="System.Security.Cryptography.Pkcs" Version="11.0.0-rc.2.26504.105" />

System.Security.Cryptography.Pkcs.CmsSigner

public sealed class CmsSigner
Represents a potential signer for a CMS/PKCS#7 signed message.
namespace System.Security.Cryptography.Pkcs { public sealed class CmsSigner { public X509Certificate2 Certificate { get; set; } public AsymmetricAlgorithm PrivateKey { get; set; } public X509Certificate2Collection Certificates { get; } public Oid DigestAlgorithm { get; set; } public X509IncludeOption IncludeOption { get; set; } public CryptographicAttributeObjectCollection SignedAttributes { get; } public CryptographicAttributeObjectCollection UnsignedAttributes { get; } public RSASignaturePadding SignaturePadding { get; set; } public SubjectIdentifierType SignerIdentifierType { get; set; } public CmsSigner(); public CmsSigner(SubjectIdentifierType signerIdentifierType); public CmsSigner(X509Certificate2 certificate); public CmsSigner(CspParameters parameters); public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificate2 certificate); public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificate2 certificate, AsymmetricAlgorithm privateKey); public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificate2 certificate, MLDsa privateKey); public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificate2 certificate, SlhDsa privateKey); public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificate2 certificate, CompositeMLDsa privateKey); public CmsSigner(SubjectIdentifierType signerIdentifierType, X509Certificate2 certificate, RSA privateKey, RSASignaturePadding signaturePadding); } }