EnvelopedCms コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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.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.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.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。