Sdílet prostřednictvím


CmsRecipient Konstruktory

Definice

Inicializuje novou instanci CmsRecipient třídy .

Přetížení

CmsRecipient(X509Certificate2)

Inicializuje novou instanci CmsRecipient třídy se zadaným certifikátem pomocí výchozího režimu šifrování pro algoritmus veřejného klíče a identifikátor subjektu IssuerAndSerialNumber .

CmsRecipient(SubjectIdentifierType, X509Certificate2)

Inicializuje novou instanci CmsRecipient třídy se zadaným certifikátem a typem identifikátoru příjemce pomocí výchozího režimu šifrování pro algoritmus veřejného klíče.

CmsRecipient(X509Certificate2, RSAEncryptionPadding)

Inicializuje novou instanci CmsRecipient třídy se zadaným certifikátem RSA a odsazením šifrování RSA pomocí identifikátoru IssuerAndSerialNumber subjektu.

CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding)

Inicializuje novou instanci CmsRecipient třídy se zadaným certifikátem RSA, odsazením šifrování RSA a identifikátorem subjektu.

CmsRecipient(X509Certificate2)

Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs

Inicializuje novou instanci CmsRecipient třídy se zadaným certifikátem pomocí výchozího režimu šifrování pro algoritmus veřejného klíče a identifikátor subjektu IssuerAndSerialNumber .

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)

Parametry

certificate
X509Certificate2

Certifikát, který se má použít při šifrování pro tohoto příjemce.

Výjimky

Parametr certificate je null.

Poznámky

Třída CmsRecipient má následující výchozí hodnoty vlastností.

Vlastnost Výchozí hodnota
RecipientIdentifierType IssuerAndSerialNumber
RSAEncryptionPadding null

Viz také

Platí pro

CmsRecipient(SubjectIdentifierType, X509Certificate2)

Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs

Inicializuje novou instanci CmsRecipient třídy se zadaným certifikátem a typem identifikátoru příjemce pomocí výchozího režimu šifrování pro algoritmus veřejného klíče.

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)

Parametry

recipientIdentifierType
SubjectIdentifierType

Schéma, které se má použít k identifikaci, který certifikát příjemce byl použit.

certificate
X509Certificate2

Certifikát, který se má použít při šifrování pro tohoto příjemce.

Výjimky

Parametr certificate je null.

Hodnota recipientIdentifierType není podporována.

Viz také

Platí pro

CmsRecipient(X509Certificate2, RSAEncryptionPadding)

Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs

Inicializuje novou instanci CmsRecipient třídy se zadaným certifikátem RSA a odsazením šifrování RSA pomocí identifikátoru IssuerAndSerialNumber subjektu.

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)

Parametry

certificate
X509Certificate2

Certifikát, který se má použít při šifrování pro tohoto příjemce.

rsaEncryptionPadding
RSAEncryptionPadding

Režim odsazení RSA, který se má použít při šifrování pro tohoto příjemce.

Výjimky

Parametr certificate nebo rsaEncryptionPadding je null.

Veřejný certificate klíč parametru není rozpoznán jako veřejný klíč RSA.

-nebo-

Hodnota recipientIdentifierType není podporována.

Poznámky

Třída CmsRecipient má následující výchozí hodnoty vlastností.

Vlastnost Výchozí hodnota
RecipientIdentifierType IssuerAndSerialNumber

Platí pro

CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding)

Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs
Zdroj:
CmsRecipient.cs

Inicializuje novou instanci CmsRecipient třídy se zadaným certifikátem RSA, odsazením šifrování RSA a identifikátorem subjektu.

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)

Parametry

recipientIdentifierType
SubjectIdentifierType

Schéma, které se má použít k identifikaci, který certifikát příjemce byl použit.

certificate
X509Certificate2

Certifikát, který se má použít při šifrování pro tohoto příjemce.

rsaEncryptionPadding
RSAEncryptionPadding

Režim odsazení RSA, který se má použít při šifrování pro tohoto příjemce.

Výjimky

Parametr certificate nebo rsaEncryptionPadding je null.

Veřejný certificate klíč parametru není rozpoznán jako veřejný klíč RSA.

Viz také

Platí pro