Udostępnij za pośrednictwem


EncryptedKeyEncryptingCredentials Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy EncryptedKeyEncryptingCredentials.

Przeciążenia

EncryptedKeyEncryptingCredentials(X509Certificate2)

Inicjuje EncryptedKeyEncryptingCredentials nowe wystąpienie klasy na podstawie określonego certyfikatu X.509.

EncryptedKeyEncryptingCredentials(EncryptingCredentials, Int32, String)

Inicjuje EncryptedKeyEncryptingCredentials nowe wystąpienie klasy na podstawie określonego EncryptingCredentials obiektu, rozmiaru klucza i algorytmu szyfrowania.

EncryptedKeyEncryptingCredentials(X509Certificate2, String, Int32, String)

Inicjuje EncryptedKeyEncryptingCredentials nowe wystąpienie klasy na podstawie określonego certyfikatu X.509, algorytmu zawijania, rozmiaru klucza i algorytmu szyfrowania.

EncryptedKeyEncryptingCredentials(X509Certificate2)

Inicjuje EncryptedKeyEncryptingCredentials nowe wystąpienie 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 EncryptedKeyEncryptingCredentials nowe wystąpienie 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 zawijania kluczy 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

wrappingCredentials to null.

Uwagi

Użyj tego konstruktora, jeśli masz EncryptingCredentials już obiekt i chcesz użyć go jako poświadczeń opakowującego.

Dotyczy

EncryptedKeyEncryptingCredentials(X509Certificate2, String, Int32, String)

Inicjuje EncryptedKeyEncryptingCredentials nowe wystąpienie klasy na podstawie określonego certyfikatu X.509, algorytmu zawijania, 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.

Dotyczy