CmsRecipient Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av CmsRecipient klassen.
Överlagringar
| Name | Description |
|---|---|
| CmsRecipient(X509Certificate2) |
Initierar en ny instans av CmsRecipient klassen med ett angivet certifikat med standardkrypteringsläget för den offentliga nyckelalgoritmen och en ämnesidentifierare IssuerAndSerialNumber . |
| CmsRecipient(SubjectIdentifierType, X509Certificate2) |
Initierar en ny instans av CmsRecipient klassen med en angiven certifikat- och mottagaridentifierartyp med standardkrypteringsläget för algoritmen för offentlig nyckel. |
| CmsRecipient(X509Certificate2, RSAEncryptionPadding) |
Initierar en ny instans av klassen med ett angivet RSA-certifikat och utfyllnad av RSA-kryptering med hjälp av CmsRecipient en IssuerAndSerialNumber ämnesidentifierare. |
| CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding) |
Initierar en ny instans av CmsRecipient klassen med ett angivet RSA-certifikat, utfyllnad av RSA-kryptering och ämnesidentifierare. |
CmsRecipient(X509Certificate2)
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
Initierar en ny instans av CmsRecipient klassen med ett angivet certifikat med standardkrypteringsläget för den offentliga nyckelalgoritmen och en ämnesidentifierare 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)
Parametrar
- certificate
- X509Certificate2
Certifikatet som ska användas vid kryptering för den här mottagaren.
Undantag
Parametern certificate är null.
Kommentarer
Klassen CmsRecipient har följande standardegenskapsvärden.
| Fastighet | Standardvärdet |
|---|---|
| RecipientIdentifierType | IssuerAndSerialNumber |
| RSAEncryptionPadding | noll |
Se även
- CmsRecipient(SubjectIdentifierType, X509Certificate2)
- CmsRecipient(X509Certificate2, RSAEncryptionPadding)
Gäller för
CmsRecipient(SubjectIdentifierType, X509Certificate2)
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
Initierar en ny instans av CmsRecipient klassen med en angiven certifikat- och mottagaridentifierartyp med standardkrypteringsläget för algoritmen för offentlig nyckel.
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)
Parametrar
- recipientIdentifierType
- SubjectIdentifierType
Det schema som ska användas för att identifiera vilket mottagarcertifikat som användes.
- certificate
- X509Certificate2
Certifikatet som ska användas vid kryptering för den här mottagaren.
Undantag
Parametern certificate är null.
Värdet recipientIdentifierType stöds inte.
Se även
- CmsRecipient(X509Certificate2)
- CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding)
Gäller för
CmsRecipient(X509Certificate2, RSAEncryptionPadding)
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
Initierar en ny instans av klassen med ett angivet RSA-certifikat och utfyllnad av RSA-kryptering med hjälp av CmsRecipient en IssuerAndSerialNumber ämnesidentifierare.
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)
Parametrar
- certificate
- X509Certificate2
Certifikatet som ska användas vid kryptering för den här mottagaren.
- rsaEncryptionPadding
- RSAEncryptionPadding
Det RSA-utfyllnadsläge som ska användas vid kryptering för den här mottagaren.
Undantag
Parametern certificate eller rsaEncryptionPadding är null.
Den certificate offentliga parameternyckeln identifieras inte som en offentlig RSA-nyckel.
Kommentarer
Klassen CmsRecipient har följande standardegenskapsvärden.
| Fastighet | Standardvärdet |
|---|---|
| RecipientIdentifierType | IssuerAndSerialNumber |
Gäller för
CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding)
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
- Källa:
- CmsRecipient.cs
Initierar en ny instans av CmsRecipient klassen med ett angivet RSA-certifikat, utfyllnad av RSA-kryptering och ämnesidentifierare.
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)
Parametrar
- recipientIdentifierType
- SubjectIdentifierType
Det schema som ska användas för att identifiera vilket mottagarcertifikat som användes.
- certificate
- X509Certificate2
Certifikatet som ska användas vid kryptering för den här mottagaren.
- rsaEncryptionPadding
- RSAEncryptionPadding
Det RSA-utfyllnadsläge som ska användas vid kryptering för den här mottagaren.
Undantag
Parametern certificate eller rsaEncryptionPadding är null.
Den certificate offentliga parameternyckeln identifieras inte som en offentlig RSA-nyckel.