CmsSigner コンストラクター

定義

CmsSigner クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
CmsSigner()

既定値を使用して、 CmsSigner クラスの新しいインスタンスを初期化します。

CmsSigner(SubjectIdentifierType, X509Certificate2, SlhDsa)
CmsSigner(SubjectIdentifierType, X509Certificate2, MLDsa)
CmsSigner(SubjectIdentifierType, X509Certificate2, CompositeMLDsa)
CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm)

指定した署名者証明書、サブジェクト識別子の種類、および秘密キー オブジェクトを使用して、 CmsSigner クラスの新しいインスタンスを初期化します。

CmsSigner(SubjectIdentifierType, X509Certificate2, RSA, RSASignaturePadding)

指定した署名者証明書、サブジェクト識別子の種類、秘密キー オブジェクト、および RSA 署名パディングを使用して、CmsSigner クラスの新しいインスタンスを初期化します。

CmsSigner(X509Certificate2)

指定した署名者証明書を使用して、 CmsSigner クラスの新しいインスタンスを初期化します。

CmsSigner(SubjectIdentifierType)

指定したサブジェクト識別子型を使用して、 CmsSigner クラスの新しいインスタンスを初期化します。

CmsSigner(CspParameters)
古い.

永続化されたキーから CmsSigner クラスの新しいインスタンスを初期化します。

CmsSigner(SubjectIdentifierType, X509Certificate2)

指定した署名者証明書とサブジェクト識別子の種類を使用して、 CmsSigner クラスの新しいインスタンスを初期化します。

CmsSigner()

ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs

既定値を使用して、 CmsSigner クラスの新しいインスタンスを初期化します。

public:
 CmsSigner();
public CmsSigner();
Public Sub New ()

注釈

このコンストラクターは、次の既定のプロパティ値になります。

財産 既定値
SignerIdentifierType SubjectIdentifierType.IssuerAndSerialNumber
DigestAlgorithm 2.16.840.1.101.3.4.2.1 (SHA-256)
IncludeOption X509IncludeOption.ExcludeRoot

適用対象

CmsSigner(SubjectIdentifierType, X509Certificate2, SlhDsa)

ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
public:
 CmsSigner(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Security::Cryptography::SlhDsa ^ privateKey);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2? certificate, System.Security.Cryptography.SlhDsa? privateKey);
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2? certificate, System.Security.Cryptography.SlhDsa? privateKey);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.SlhDsa -> System.Security.Cryptography.Pkcs.CmsSigner
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.SlhDsa -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (signerIdentifierType As SubjectIdentifierType, certificate As X509Certificate2, privateKey As SlhDsa)

パラメーター

signerIdentifierType
SubjectIdentifierType
certificate
X509Certificate2
privateKey
SlhDsa
属性

適用対象

CmsSigner(SubjectIdentifierType, X509Certificate2, MLDsa)

ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
public:
 CmsSigner(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Security::Cryptography::MLDsa ^ privateKey);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2? certificate, System.Security.Cryptography.MLDsa? privateKey);
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2? certificate, System.Security.Cryptography.MLDsa? privateKey);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.MLDsa -> System.Security.Cryptography.Pkcs.CmsSigner
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.MLDsa -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (signerIdentifierType As SubjectIdentifierType, certificate As X509Certificate2, privateKey As MLDsa)

パラメーター

signerIdentifierType
SubjectIdentifierType
certificate
X509Certificate2
privateKey
MLDsa
属性

適用対象

CmsSigner(SubjectIdentifierType, X509Certificate2, CompositeMLDsa)

ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
public:
 CmsSigner(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Security::Cryptography::CompositeMLDsa ^ privateKey);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2? certificate, System.Security.Cryptography.CompositeMLDsa? privateKey);
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2? certificate, System.Security.Cryptography.CompositeMLDsa? privateKey);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.CompositeMLDsa -> System.Security.Cryptography.Pkcs.CmsSigner
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.CompositeMLDsa -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (signerIdentifierType As SubjectIdentifierType, certificate As X509Certificate2, privateKey As CompositeMLDsa)

パラメーター

signerIdentifierType
SubjectIdentifierType
certificate
X509Certificate2
privateKey
CompositeMLDsa
属性

適用対象

CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm)

ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs

指定した署名者証明書、サブジェクト識別子の種類、および秘密キー オブジェクトを使用して、 CmsSigner クラスの新しいインスタンスを初期化します。

public:
 CmsSigner(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Security::Cryptography::AsymmetricAlgorithm ^ privateKey);
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2? certificate, System.Security.Cryptography.AsymmetricAlgorithm? privateKey);
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Cryptography.AsymmetricAlgorithm privateKey);
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.AsymmetricAlgorithm -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (signerIdentifierType As SubjectIdentifierType, certificate As X509Certificate2, privateKey As AsymmetricAlgorithm)

パラメーター

signerIdentifierType
SubjectIdentifierType

使用された署名証明書を識別するために使用するスキームを指定する列挙値の 1 つ。

certificate
X509Certificate2

秘密キーを使用してメッセージに署名する証明書。

privateKey
AsymmetricAlgorithm

メッセージの署名時に使用する秘密キー オブジェクト。

注釈

このコンストラクターは、次の既定のプロパティ値になります。

財産 既定値
DigestAlgorithm 2.16.840.1.101.3.4.2.1 (SHA-256)
IncludeOption X509IncludeOption.None SignerIdentifierTypeSubjectIdentifierType.NoSignatureである場合は、

X509IncludeOption.ExcludeRoot さもなければ

certificate パラメーターで指定された署名証明書は、入力の有効性をチェックしません。 このコンストラクターに証明書を指定する前に証明書を検証するには、 X509Chain.Build メソッドを使用します。

このコンストラクターは、 privateKey パラメーターが certificateの公開キーに対応していることを検証しません。 キーが一致しない場合、 SignedCms クラスと ComputeCounterSignature(CmsSigner) メソッドは署名プロセス中に CryptographicException をスローします。

適用対象

CmsSigner(SubjectIdentifierType, X509Certificate2, RSA, RSASignaturePadding)

ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs

指定した署名者証明書、サブジェクト識別子の種類、秘密キー オブジェクト、および RSA 署名パディングを使用して、CmsSigner クラスの新しいインスタンスを初期化します。

public:
 CmsSigner(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Security::Cryptography::RSA ^ privateKey, System::Security::Cryptography::RSASignaturePadding ^ signaturePadding);
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2? certificate, System.Security.Cryptography.RSA? privateKey, System.Security.Cryptography.RSASignaturePadding? signaturePadding);
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.RSA * System.Security.Cryptography.RSASignaturePadding -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (signerIdentifierType As SubjectIdentifierType, certificate As X509Certificate2, privateKey As RSA, signaturePadding As RSASignaturePadding)

パラメーター

signerIdentifierType
SubjectIdentifierType

使用された署名証明書を識別するために使用するスキームを指定する列挙値の 1 つ。

certificate
X509Certificate2

秘密キーを使用してメッセージに署名する証明書。

privateKey
RSA

メッセージの署名時に使用する秘密キー オブジェクト。

signaturePadding
RSASignaturePadding

使用する RSA 署名のパディング。

適用対象

CmsSigner(X509Certificate2)

ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs

指定した署名者証明書を使用して、 CmsSigner クラスの新しいインスタンスを初期化します。

public:
 CmsSigner(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public CmsSigner(System.Security.Cryptography.X509Certificates.X509Certificate2? certificate);
public CmsSigner(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (certificate As X509Certificate2)

パラメーター

certificate
X509Certificate2

秘密キーを使用してメッセージに署名する証明書。

注釈

このコンストラクターは、次の既定のプロパティ値になります。

財産 既定値
SignerIdentifierType SubjectIdentifierType.IssuerAndSerialNumber
DigestAlgorithm 2.16.840.1.101.3.4.2.1 (SHA-256)
IncludeOption X509IncludeOption.ExcludeRoot

certificate パラメーターで指定された署名証明書は、入力の有効性をチェックしません。 このコンストラクターに証明書を指定する前に証明書を検証するには、 X509Chain.Build メソッドを使用します。

適用対象

CmsSigner(SubjectIdentifierType)

ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs

指定したサブジェクト識別子型を使用して、 CmsSigner クラスの新しいインスタンスを初期化します。

public:
 CmsSigner(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType);
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType);
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (signerIdentifierType As SubjectIdentifierType)

パラメーター

signerIdentifierType
SubjectIdentifierType

使用された署名証明書を識別するために使用するスキーム。

注釈

このコンストラクターは、次の既定のプロパティ値になります。

財産 既定値
DigestAlgorithm 2.16.840.1.101.3.4.2.1 (SHA-256)
IncludeOption X509IncludeOption.None SignerIdentifierTypeSubjectIdentifierType.NoSignatureである場合は、

X509IncludeOption.ExcludeRoot さもなければ

適用対象

CmsSigner(CspParameters)

ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs

注意事項

CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead.

永続化されたキーから CmsSigner クラスの新しいインスタンスを初期化します。

public:
 CmsSigner(System::Security::Cryptography::CspParameters ^ parameters);
[System.Obsolete("CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead.", DiagnosticId="SYSLIB0034", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public CmsSigner(System.Security.Cryptography.CspParameters parameters);
public CmsSigner(System.Security.Cryptography.CspParameters parameters);
[<System.Obsolete("CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead.", DiagnosticId="SYSLIB0034", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.CspParameters -> System.Security.Cryptography.Pkcs.CmsSigner
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.CspParameters -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (parameters As CspParameters)

パラメーター

parameters
CspParameters

使用する署名キーを記述する CSP パラメーター。

属性

例外

.NET Core と .NET 5 以降のみ: すべての場合。

注釈

このコンストラクターは、次の既定のプロパティ値になります。

財産 既定値
SignerIdentifierType SubjectIdentifierType.SubjectKeyIdentifier
DigestAlgorithm 2.16.840.1.101.3.4.2.1 (SHA-256)
IncludeOption X509IncludeOption.None

Important

このメソッドは、.NET Framework でのみサポートされます。 .NET Core で使用すると、 PlatformNotSupportedExceptionがスローされます。

適用対象

CmsSigner(SubjectIdentifierType, X509Certificate2)

ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs
ソース:
CmsSigner.cs

指定した署名者証明書とサブジェクト識別子の種類を使用して、 CmsSigner クラスの新しいインスタンスを初期化します。

public:
 CmsSigner(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2? certificate);
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (signerIdentifierType As SubjectIdentifierType, certificate As X509Certificate2)

パラメーター

signerIdentifierType
SubjectIdentifierType

使用された署名証明書を識別するために使用するスキーム。

certificate
X509Certificate2

秘密キーを使用してメッセージに署名する証明書。

注釈

このコンストラクターは、次の既定のプロパティ値になります。

財産 既定値
DigestAlgorithm 2.16.840.1.101.3.4.2.1 (SHA-256)
IncludeOption X509IncludeOption.None SignerIdentifierTypeSubjectIdentifierType.NoSignatureである場合は、

X509IncludeOption.ExcludeRoot さもなければ

certificate パラメーターで指定された署名証明書は、入力の有効性をチェックしません。 このコンストラクターに証明書を指定する前に証明書を検証するには、 X509Chain.Build メソッドを使用します。

適用対象