EncryptedKeyEncryptingCredentials Konstruktory

Definice

Inicializuje novou instanci EncryptedKeyEncryptingCredentials třídy.

Přetížení

Name Description
EncryptedKeyEncryptingCredentials(X509Certificate2)

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

EncryptedKeyEncryptingCredentials(EncryptingCredentials, Int32, String)

Inicializuje novou instanci třídy na základě zadaného EncryptedKeyEncryptingCredentialsEncryptingCredentials 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 je přihlašovací údaje zabaleného certifikátu X.509 a chcete použít výchozí algoritmus pro zabalení a šifrovací algoritmus, které jsou RSA-OAEP a AES256.

Platí pro

EncryptedKeyEncryptingCredentials(EncryptingCredentials, Int32, String)

Inicializuje novou instanci třídy na základě zadaného EncryptedKeyEncryptingCredentialsEncryptingCredentials 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 š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 symetrický algoritmus klíče.

Výjimky

wrappingCredentials je null.

Poznámky

Tento konstruktor použijte, pokud již máte EncryptingCredentials objekt a chcete jej 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 zabalení klíče. To by měl být 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 symetrický algoritmus klíče.

Poznámky

Tento konstruktor použijte, pokud je obtékání přihlašovacích údajů certifikátem X.509 a chcete zadat vlastní algoritmus obtékání a šifrovací algoritmus.

Platí pro