CmsRecipient コンストラクター

定義

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

オーバーロード

CmsRecipient(X509Certificate2)

公開キー アルゴリズム向けの既定の暗号化モードと IssuerAndSerialNumber サブジェクト識別子を使用して、CmsRecipient クラスの新しいインスタンスを指定の証明書で初期化します。

CmsRecipient(SubjectIdentifierType, X509Certificate2)

公開キー アルゴリズムの既定の暗号化モードを使用して、CmsRecipient クラスの新しいインスタンスを指定の証明書と受信者の識別子の型で初期化します。

CmsRecipient(X509Certificate2, RSAEncryptionPadding)

IssuerAndSerialNumber サブジェクト識別子を使用して、CmsRecipient クラスの新しいインスタンスを、指定された RSA 証明書と RSA 暗号化パディングで初期化します。

CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding)

CmsRecipient クラスの新しいインスタンスを、指定の RSA 証明書、RSA 暗号化パディング、およびサブジェクト識別子で初期化します。

CmsRecipient(X509Certificate2)

ソース:
CmsRecipient.cs
ソース:
CmsRecipient.cs
ソース:
CmsRecipient.cs

公開キー アルゴリズム向けの既定の暗号化モードと IssuerAndSerialNumber サブジェクト識別子を使用して、CmsRecipient クラスの新しいインスタンスを指定の証明書で初期化します。

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

パラメーター

certificate
X509Certificate2

この受信者に対する暗号化に使用する証明書。

例外

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

注釈

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

プロパティ 既定値
RecipientIdentifierType IssuerAndSerialNumber
RSAEncryptionPadding null

こちらもご覧ください

適用対象

CmsRecipient(SubjectIdentifierType, X509Certificate2)

ソース:
CmsRecipient.cs
ソース:
CmsRecipient.cs
ソース:
CmsRecipient.cs

公開キー アルゴリズムの既定の暗号化モードを使用して、CmsRecipient クラスの新しいインスタンスを指定の証明書と受信者の識別子の型で初期化します。

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

パラメーター

recipientIdentifierType
SubjectIdentifierType

使用された受信者の証明書を識別するために使用するスキーム。

certificate
X509Certificate2

この受信者に対する暗号化に使用する証明書。

例外

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

recipientIdentifierType 値はサポートされていません。

こちらもご覧ください

適用対象

CmsRecipient(X509Certificate2, RSAEncryptionPadding)

ソース:
CmsRecipient.cs
ソース:
CmsRecipient.cs
ソース:
CmsRecipient.cs

IssuerAndSerialNumber サブジェクト識別子を使用して、CmsRecipient クラスの新しいインスタンスを、指定された RSA 証明書と RSA 暗号化パディングで初期化します。

public:
 CmsRecipient(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Security::Cryptography::RSAEncryptionPadding ^ rsaEncryptionPadding);
public CmsRecipient (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Cryptography.RSAEncryptionPadding rsaEncryptionPadding);
new System.Security.Cryptography.Pkcs.CmsRecipient : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.RSAEncryptionPadding -> System.Security.Cryptography.Pkcs.CmsRecipient
Public Sub New (certificate As X509Certificate2, rsaEncryptionPadding As RSAEncryptionPadding)

パラメーター

certificate
X509Certificate2

この受信者に対する暗号化に使用する証明書。

rsaEncryptionPadding
RSAEncryptionPadding

この受信者に対する暗号化に使用する RSA パディング モード。

例外

certificate パラメーターまたは rsaEncryptionPadding パラメーターが null です。

certificate パラメーター公開キーは、RSA 公開キーとして認識されません。

- または -

recipientIdentifierType 値はサポートされていません。

注釈

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

プロパティ 既定値
RecipientIdentifierType IssuerAndSerialNumber

適用対象

CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding)

ソース:
CmsRecipient.cs
ソース:
CmsRecipient.cs
ソース:
CmsRecipient.cs

CmsRecipient クラスの新しいインスタンスを、指定の RSA 証明書、RSA 暗号化パディング、およびサブジェクト識別子で初期化します。

public:
 CmsRecipient(System::Security::Cryptography::Pkcs::SubjectIdentifierType recipientIdentifierType, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Security::Cryptography::RSAEncryptionPadding ^ rsaEncryptionPadding);
public CmsRecipient (System.Security.Cryptography.Pkcs.SubjectIdentifierType recipientIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Cryptography.RSAEncryptionPadding rsaEncryptionPadding);
new System.Security.Cryptography.Pkcs.CmsRecipient : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.RSAEncryptionPadding -> System.Security.Cryptography.Pkcs.CmsRecipient
Public Sub New (recipientIdentifierType As SubjectIdentifierType, certificate As X509Certificate2, rsaEncryptionPadding As RSAEncryptionPadding)

パラメーター

recipientIdentifierType
SubjectIdentifierType

使用された受信者の証明書を識別するために使用するスキーム。

certificate
X509Certificate2

この受信者に対する暗号化に使用する証明書。

rsaEncryptionPadding
RSAEncryptionPadding

この受信者に対する暗号化に使用する RSA パディング モード。

例外

certificate パラメーターまたは rsaEncryptionPadding パラメーターが null です。

certificate パラメーター公開キーは、RSA 公開キーとして認識されません。

こちらもご覧ください

適用対象