Share via


EnvelopedCms コンストラクター

定義

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

オーバーロード

EnvelopedCms()

EnvelopedCms クラスの新しいインスタンスを既定値で初期化します。

EnvelopedCms(ContentInfo)

指定された内容の情報を使用して、EnvelopedCms クラスの新しいインスタンスを初期化します。

EnvelopedCms(ContentInfo, AlgorithmIdentifier)

指定された対称暗号化アルゴリズムと内容の情報を使用して、EnvelopedCms クラスの新しいインスタンスを初期化します。

EnvelopedCms(SubjectIdentifierType, ContentInfo)

指定された内容の情報と、UI で受信者を選択するときのサブジェクト識別子スキームを使用して、EnvelopedCms クラスの新しいインスタンスを初期化します。

EnvelopedCms(SubjectIdentifierType, ContentInfo, AlgorithmIdentifier)

指定された対称暗号化アルゴリズム、内容の情報、および UI で受信者を選択するときのサブジェクト識別子スキームを使用して、EnvelopedCms クラスの新しいインスタンスを初期化します。

EnvelopedCms()

ソース:
EnvelopedCms.cs
ソース:
EnvelopedCms.cs
ソース:
EnvelopedCms.cs
ソース:
EnvelopedCms.cs

EnvelopedCms クラスの新しいインスタンスを既定値で初期化します。

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

注釈

クラスには EnvelopedCms 、次の既定のプロパティ値があります。

プロパティ 既定値
ContentInfo コンテンツ タイプ: 1.2.840.113549.1.7.1 (データ)
長さ: 0
ContentEncryptionAlgorithm 1.2.840.113549.3.7 (RSA_DES_EDE3_CBC) または 2.16.840.1.101.3.4.1.42 (AES-256-CBC)

受信者の既定値 SubjectIdentifierType は です IssuerAndSerialNumber

.NET Frameworkでは、既定の対称暗号化アルゴリズムは、アプリケーション実行可能ファイルがビルドされた.NET Frameworkのバージョンによって決まります。 .NET Framework 4.8 以降、既定のアルゴリズムは CBC モードでは AES-256 です。以前のバージョンでは、CBC モードでは既定値は TripleDES (DES3-EDE) です。

.NET Core では、既定の対称暗号化アルゴリズムは、読み込まれる System.Security.Cryptography.Pkcs アセンブリのバージョンによって決まります。 System.Security.Cryptography.Pkcs NuGet パッケージの 4.6.0 バージョン以降、既定のアルゴリズムは CBC モードの AES-256 です。以前のバージョンでは、既定値は CBC モードの TripleDES (DES3-EDE) です。

適用対象

EnvelopedCms(ContentInfo)

ソース:
EnvelopedCms.cs
ソース:
EnvelopedCms.cs
ソース:
EnvelopedCms.cs
ソース:
EnvelopedCms.cs

指定された内容の情報を使用して、EnvelopedCms クラスの新しいインスタンスを初期化します。

public:
 EnvelopedCms(System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo);
public EnvelopedCms (System.Security.Cryptography.Pkcs.ContentInfo contentInfo);
new System.Security.Cryptography.Pkcs.EnvelopedCms : System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.EnvelopedCms
Public Sub New (contentInfo As ContentInfo)

パラメーター

contentInfo
ContentInfo

暗号化するメッセージの内容。

例外

contentInfo パラメーターが null です。

注釈

受信者の既定値 SubjectIdentifierType は です IssuerAndSerialNumber

.NET Frameworkでは、既定の対称暗号化アルゴリズムは、アプリケーション実行可能ファイルがビルドされた.NET Frameworkのバージョンによって決まります。 .NET Framework 4.8 以降、既定のアルゴリズムは CBC モードでは AES-256 です。以前のバージョンでは、CBC モードでは既定値は TripleDES (DES3-EDE) です。

.NET Core では、既定の対称暗号化アルゴリズムは、読み込まれる System.Security.Cryptography.Pkcs アセンブリのバージョンによって決まります。 System.Security.Cryptography.Pkcs NuGet パッケージの 4.6.0 バージョン以降、既定のアルゴリズムは CBC モードの AES-256 です。以前のバージョンでは、既定値は CBC モードの TripleDES (DES3-EDE) です。

こちらもご覧ください

適用対象

EnvelopedCms(ContentInfo, AlgorithmIdentifier)

ソース:
EnvelopedCms.cs
ソース:
EnvelopedCms.cs
ソース:
EnvelopedCms.cs
ソース:
EnvelopedCms.cs

指定された対称暗号化アルゴリズムと内容の情報を使用して、EnvelopedCms クラスの新しいインスタンスを初期化します。

public:
 EnvelopedCms(System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo, System::Security::Cryptography::Pkcs::AlgorithmIdentifier ^ encryptionAlgorithm);
public EnvelopedCms (System.Security.Cryptography.Pkcs.ContentInfo contentInfo, System.Security.Cryptography.Pkcs.AlgorithmIdentifier encryptionAlgorithm);
new System.Security.Cryptography.Pkcs.EnvelopedCms : System.Security.Cryptography.Pkcs.ContentInfo * System.Security.Cryptography.Pkcs.AlgorithmIdentifier -> System.Security.Cryptography.Pkcs.EnvelopedCms
Public Sub New (contentInfo As ContentInfo, encryptionAlgorithm As AlgorithmIdentifier)

パラメーター

contentInfo
ContentInfo

暗号化するメッセージの内容。

encryptionAlgorithm
AlgorithmIdentifier

メッセージの内容を暗号化するときに使用する対称暗号化アルゴリズムの識別子。

例外

contentInfo パラメーターまたは encryptionAlgorithm パラメーターが null です。

注釈

受信者の既定値 SubjectIdentifierType は です IssuerAndSerialNumber

こちらもご覧ください

適用対象

EnvelopedCms(SubjectIdentifierType, ContentInfo)

指定された内容の情報と、UI で受信者を選択するときのサブジェクト識別子スキームを使用して、EnvelopedCms クラスの新しいインスタンスを初期化します。

public:
 EnvelopedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType recipientIdentifierType, System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo);
public EnvelopedCms (System.Security.Cryptography.Pkcs.SubjectIdentifierType recipientIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo contentInfo);
new System.Security.Cryptography.Pkcs.EnvelopedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.EnvelopedCms
Public Sub New (recipientIdentifierType As SubjectIdentifierType, contentInfo As ContentInfo)

パラメーター

recipientIdentifierType
SubjectIdentifierType

UI プロンプトによって選択された受信者の証明書に使用するサブジェクト識別子スキームを指定する列挙値の 1 つ。

contentInfo
ContentInfo

暗号化するメッセージの内容。

例外

contentInfo パラメーターが null です。

注釈

.NET Frameworkでは、既定の対称暗号化アルゴリズムは、アプリケーション実行可能ファイルがビルドされた.NET Frameworkのバージョンによって決まります。 .NET Framework 4.8 以降、既定のアルゴリズムは CBC モードでは AES-256 です。以前のバージョンでは、CBC モードでは既定値は TripleDES (DES3-EDE) です。

.NET Core では、既定の対称暗号化アルゴリズムは、読み込まれる System.Security.Cryptography.Pkcs アセンブリのバージョンによって決まります。 System.Security.Cryptography.Pkcs NuGet パッケージの 4.6.0 バージョン以降、既定のアルゴリズムは CBC モードの AES-256 です。以前のバージョンでは、既定値は CBC モードの TripleDES (DES3-EDE) です。

こちらもご覧ください

適用対象

EnvelopedCms(SubjectIdentifierType, ContentInfo, AlgorithmIdentifier)

指定された対称暗号化アルゴリズム、内容の情報、および UI で受信者を選択するときのサブジェクト識別子スキームを使用して、EnvelopedCms クラスの新しいインスタンスを初期化します。

public:
 EnvelopedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType recipientIdentifierType, System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo, System::Security::Cryptography::Pkcs::AlgorithmIdentifier ^ encryptionAlgorithm);
public EnvelopedCms (System.Security.Cryptography.Pkcs.SubjectIdentifierType recipientIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo contentInfo, System.Security.Cryptography.Pkcs.AlgorithmIdentifier encryptionAlgorithm);
new System.Security.Cryptography.Pkcs.EnvelopedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.Pkcs.ContentInfo * System.Security.Cryptography.Pkcs.AlgorithmIdentifier -> System.Security.Cryptography.Pkcs.EnvelopedCms
Public Sub New (recipientIdentifierType As SubjectIdentifierType, contentInfo As ContentInfo, encryptionAlgorithm As AlgorithmIdentifier)

パラメーター

recipientIdentifierType
SubjectIdentifierType

UI プロンプトによって選択された受信者の証明書に使用するサブジェクト識別子スキームを指定する列挙値の 1 つ。

contentInfo
ContentInfo

暗号化するメッセージの内容。

encryptionAlgorithm
AlgorithmIdentifier

メッセージの内容を暗号化するときに使用する対称暗号化アルゴリズムの識別子。

例外

contentInfo パラメーターまたは encryptionAlgorithm パラメーターが null です。

適用対象