EncryptedKeyEncryptingCredentials Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy EncryptedKeyEncryptingCredentials.
Przeciążenia
| Nazwa | Opis |
|---|---|
| EncryptedKeyEncryptingCredentials(X509Certificate2) |
Inicjuje nowe wystąpienie EncryptedKeyEncryptingCredentials klasy na podstawie określonego certyfikatu X.509. |
| EncryptedKeyEncryptingCredentials(EncryptingCredentials, Int32, String) |
Inicjuje nowe wystąpienie EncryptedKeyEncryptingCredentials klasy na podstawie określonego EncryptingCredentials obiektu, rozmiaru klucza i algorytmu szyfrowania. |
| EncryptedKeyEncryptingCredentials(X509Certificate2, String, Int32, String) |
Inicjuje nowe wystąpienie EncryptedKeyEncryptingCredentials klasy na podstawie określonego certyfikatu X.509, algorytmu opakowującego, rozmiaru klucza i algorytmu szyfrowania. |
EncryptedKeyEncryptingCredentials(X509Certificate2)
Inicjuje nowe wystąpienie EncryptedKeyEncryptingCredentials klasy na podstawie określonego certyfikatu X.509.
public:
EncryptedKeyEncryptingCredentials(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public EncryptedKeyEncryptingCredentials(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials
Public Sub New (certificate As X509Certificate2)
Parametry
- certificate
- X509Certificate2
Certyfikat używany do szyfrowania klucza.
Uwagi
Użyj tego konstruktora, jeśli poświadczenie opakowujące jest certyfikatem X.509 i chcesz użyć domyślnego algorytmu opakowującego i algorytmu szyfrowania, które są odpowiednio RSA-OAEP i AES256.
Dotyczy
EncryptedKeyEncryptingCredentials(EncryptingCredentials, Int32, String)
Inicjuje nowe wystąpienie EncryptedKeyEncryptingCredentials klasy na podstawie określonego EncryptingCredentials obiektu, rozmiaru klucza i algorytmu szyfrowania.
public:
EncryptedKeyEncryptingCredentials(System::IdentityModel::Tokens::EncryptingCredentials ^ wrappingCredentials, int keySizeInBits, System::String ^ encryptionAlgorithm);
public EncryptedKeyEncryptingCredentials(System.IdentityModel.Tokens.EncryptingCredentials wrappingCredentials, int keySizeInBits, string encryptionAlgorithm);
new System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials : System.IdentityModel.Tokens.EncryptingCredentials * int * string -> System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials
Public Sub New (wrappingCredentials As EncryptingCredentials, keySizeInBits As Integer, encryptionAlgorithm As String)
Parametry
- wrappingCredentials
- EncryptingCredentials
Poświadczenia opakowujące klucze używane do szyfrowania klucza sesji.
- keySizeInBits
- Int32
Rozmiar klucza opakowanego klucza sesji.
- encryptionAlgorithm
- String
Identyfikator URI reprezentujący algorytm szyfrowania podczas użycia klucza sesji. Powinien to być algorytm klucza symetrycznego.
Wyjątki
Parametr wrappingCredentials ma wartość null.
Uwagi
Użyj tego konstruktora, jeśli masz EncryptingCredentials już obiekt i chcesz go użyć jako poświadczeń opakowującego.
Dotyczy
EncryptedKeyEncryptingCredentials(X509Certificate2, String, Int32, String)
Inicjuje nowe wystąpienie EncryptedKeyEncryptingCredentials klasy na podstawie określonego certyfikatu X.509, algorytmu opakowującego, rozmiaru klucza i algorytmu szyfrowania.
public:
EncryptedKeyEncryptingCredentials(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::String ^ keyWrappingAlgorithm, int keySizeInBits, System::String ^ encryptionAlgorithm);
public EncryptedKeyEncryptingCredentials(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string keyWrappingAlgorithm, int keySizeInBits, string encryptionAlgorithm);
new System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * string * int * string -> System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials
Public Sub New (certificate As X509Certificate2, keyWrappingAlgorithm As String, keySizeInBits As Integer, encryptionAlgorithm As String)
Parametry
- certificate
- X509Certificate2
Certyfikat używany do szyfrowania klucza.
- keyWrappingAlgorithm
- String
Identyfikator URI reprezentujący algorytm zawijania kluczy. Powinien to być algorytm asymetryczny.
- keySizeInBits
- Int32
Rozmiar klucza opakowanego klucza sesji.
- encryptionAlgorithm
- String
Identyfikator URI reprezentujący algorytm szyfrowania podczas użycia klucza sesji. Powinien to być algorytm klucza symetrycznego.
Uwagi
Użyj tego konstruktora, jeśli poświadczenie opakowujące jest certyfikatem X.509 i chcesz podać własny algorytm opakowujący i algorytm szyfrowania.