Sdílet prostřednictvím


EncryptedKeyEncryptingCredentials Konstruktory

Definice

Inicializuje novou instanci EncryptedKeyEncryptingCredentials třídy.

Přetížení

EncryptedKeyEncryptingCredentials(X509Certificate2)

Inicializuje novou instanci EncryptedKeyEncryptingCredentials třídy na základě zadaného certifikátu X.509.

EncryptedKeyEncryptingCredentials(EncryptingCredentials, Int32, String)

Inicializuje novou instanci EncryptedKeyEncryptingCredentials třídy na základě zadaného EncryptingCredentials objektu, velikosti klíče a šifrovacího algoritmu.

EncryptedKeyEncryptingCredentials(X509Certificate2, String, Int32, String)

Inicializuje novou instanci třídy na základě zadaného EncryptedKeyEncryptingCredentials certifikátu X.509, algoritmu zabalení, velikosti klíče a šifrovacího algoritmu.

EncryptedKeyEncryptingCredentials(X509Certificate2)

Inicializuje novou instanci EncryptedKeyEncryptingCredentials třídy na základě zadaného certifikátu 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

Certifikát použitý k šifrování klíče.

Poznámky

Tento konstruktor použijte, pokud jsou přihlašovacími údaji zabalení certifikát X.509 a chcete použít výchozí algoritmus zabalení a šifrovací algoritmus, které jsou RSA-OAEP a AES256 v uvedeném pořadí.

Platí pro

EncryptedKeyEncryptingCredentials(EncryptingCredentials, Int32, String)

Inicializuje novou instanci EncryptedKeyEncryptingCredentials třídy na základě zadaného EncryptingCredentials objektu, velikosti klíče a šifrovacího algoritmu.

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

Přihlašovací údaje pro zabalení klíče použité k zašifrování klíče relace

keySizeInBits
Int32

Velikost klíče zabaleného klíče relace.

encryptionAlgorithm
String

Identifikátor URI, který představuje šifrovací algoritmus při použití klíče relace. Měl by to být algoritmus symetrického klíče.

Výjimky

wrappingCredentials je null.

Poznámky

Tento konstruktor použijte, pokud již máte EncryptingCredentials objekt a chcete ho použít jako obtékání přihlašovacích údajů.

Platí pro

EncryptedKeyEncryptingCredentials(X509Certificate2, String, Int32, String)

Inicializuje novou instanci třídy na základě zadaného EncryptedKeyEncryptingCredentials certifikátu X.509, algoritmu zabalení, velikosti klíče a šifrovacího algoritmu.

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

Certifikát použitý k šifrování klíče.

keyWrappingAlgorithm
String

Identifikátor URI, který představuje algoritmus obtékání klíčů. Měl by se jednat o asymetrický algoritmus.

keySizeInBits
Int32

Velikost klíče zabaleného klíče relace.

encryptionAlgorithm
String

Identifikátor URI, který představuje šifrovací algoritmus při použití klíče relace. Měl by to být algoritmus symetrického klíče.

Poznámky

Tento konstruktor použijte, pokud jsou přihlašovacími údaji zabalení certifikát X.509 a chcete zadat vlastní algoritmus zabalení a šifrovací algoritmus.

Platí pro