Udostępnij za pośrednictwem


Pkcs12SafeContents.AddShroudedKey Metoda

Definicja

Przeciążenia

AddShroudedKey(AsymmetricAlgorithm, String, PbeParameters)

Dodaje zaszyfrowany asymetryczny klucz prywatny do rozwiązania SafeContents za pośrednictwem nowego Pkcs12ShroudedKeyBag hasła opartego na znakach w ciągu i zwraca nowo utworzone wystąpienie torby.

AddShroudedKey(AsymmetricAlgorithm, ReadOnlySpan<Char>, PbeParameters)

Dodaje zaszyfrowany asymetryczny klucz prywatny do rozwiązania SafeContents za pośrednictwem nowego Pkcs12ShroudedKeyBag hasła opartego na znakach w zakresie i zwraca nowo utworzone wystąpienie torby.

AddShroudedKey(AsymmetricAlgorithm, Byte[], PbeParameters)

Dodaje zaszyfrowany asymetryczny klucz prywatny do usługi SafeContents za pośrednictwem nowego Pkcs12ShroudedKeyBag hasła opartego na bajtach w tablicy i zwraca nowo utworzone wystąpienie torby.

AddShroudedKey(AsymmetricAlgorithm, ReadOnlySpan<Byte>, PbeParameters)

Dodaje zaszyfrowany asymetryczny klucz prywatny do rozwiązania SafeContents za pośrednictwem nowego Pkcs12ShroudedKeyBag hasła opartego na bajtach w zakresie i zwraca nowo utworzone wystąpienie torby.

AddShroudedKey(AsymmetricAlgorithm, String, PbeParameters)

Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs

Dodaje zaszyfrowany asymetryczny klucz prywatny do rozwiązania SafeContents za pośrednictwem nowego Pkcs12ShroudedKeyBag hasła opartego na znakach w ciągu i zwraca nowo utworzone wystąpienie torby.

public:
 System::Security::Cryptography::Pkcs::Pkcs12ShroudedKeyBag ^ AddShroudedKey(System::Security::Cryptography::AsymmetricAlgorithm ^ key, System::String ^ password, System::Security::Cryptography::PbeParameters ^ pbeParameters);
public System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag AddShroudedKey (System.Security.Cryptography.AsymmetricAlgorithm key, string? password, System.Security.Cryptography.PbeParameters pbeParameters);
public System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag AddShroudedKey (System.Security.Cryptography.AsymmetricAlgorithm key, string password, System.Security.Cryptography.PbeParameters pbeParameters);
member this.AddShroudedKey : System.Security.Cryptography.AsymmetricAlgorithm * string * System.Security.Cryptography.PbeParameters -> System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag
Public Function AddShroudedKey (key As AsymmetricAlgorithm, password As String, pbeParameters As PbeParameters) As Pkcs12ShroudedKeyBag

Parametry

key
AsymmetricAlgorithm

Asymetryczny klucz prywatny do dodania.

password
String

Hasło do użycia podczas szyfrowania materiału klucza.

pbeParameters
PbeParameters

Parametry szyfrowania opartego na hasłach (PBE) do użycia podczas szyfrowania materiału klucza.

Zwraca

Wystąpienie torby, które zostało dodane do usługi SafeContents.

Wyjątki

Parametr key to null.

To wystąpienie jest tylko do odczytu.

Eksportowanie klucza nie powiodło się.

Zobacz też

Dotyczy

AddShroudedKey(AsymmetricAlgorithm, ReadOnlySpan<Char>, PbeParameters)

Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs

Dodaje zaszyfrowany asymetryczny klucz prywatny do rozwiązania SafeContents za pośrednictwem nowego Pkcs12ShroudedKeyBag hasła opartego na znakach w zakresie i zwraca nowo utworzone wystąpienie torby.

public:
 System::Security::Cryptography::Pkcs::Pkcs12ShroudedKeyBag ^ AddShroudedKey(System::Security::Cryptography::AsymmetricAlgorithm ^ key, ReadOnlySpan<char> password, System::Security::Cryptography::PbeParameters ^ pbeParameters);
public System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag AddShroudedKey (System.Security.Cryptography.AsymmetricAlgorithm key, ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters);
member this.AddShroudedKey : System.Security.Cryptography.AsymmetricAlgorithm * ReadOnlySpan<char> * System.Security.Cryptography.PbeParameters -> System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag
Public Function AddShroudedKey (key As AsymmetricAlgorithm, password As ReadOnlySpan(Of Char), pbeParameters As PbeParameters) As Pkcs12ShroudedKeyBag

Parametry

key
AsymmetricAlgorithm

Asymetryczny klucz prywatny do dodania.

password
ReadOnlySpan<Char>

Hasło do użycia podczas szyfrowania materiału klucza.

pbeParameters
PbeParameters

Parametry szyfrowania opartego na hasłach (PBE) do użycia podczas szyfrowania materiału klucza.

Zwraca

Wystąpienie torby, które zostało dodane do usługi SafeContents.

Wyjątki

Parametr key to null.

To wystąpienie jest tylko do odczytu.

Eksportowanie klucza nie powiodło się.

Zobacz też

Dotyczy

AddShroudedKey(AsymmetricAlgorithm, Byte[], PbeParameters)

Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs

Dodaje zaszyfrowany asymetryczny klucz prywatny do usługi SafeContents za pośrednictwem nowego Pkcs12ShroudedKeyBag hasła opartego na bajtach w tablicy i zwraca nowo utworzone wystąpienie torby.

public:
 System::Security::Cryptography::Pkcs::Pkcs12ShroudedKeyBag ^ AddShroudedKey(System::Security::Cryptography::AsymmetricAlgorithm ^ key, cli::array <System::Byte> ^ passwordBytes, System::Security::Cryptography::PbeParameters ^ pbeParameters);
public System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag AddShroudedKey (System.Security.Cryptography.AsymmetricAlgorithm key, byte[]? passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters);
public System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag AddShroudedKey (System.Security.Cryptography.AsymmetricAlgorithm key, byte[] passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters);
member this.AddShroudedKey : System.Security.Cryptography.AsymmetricAlgorithm * byte[] * System.Security.Cryptography.PbeParameters -> System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag
Public Function AddShroudedKey (key As AsymmetricAlgorithm, passwordBytes As Byte(), pbeParameters As PbeParameters) As Pkcs12ShroudedKeyBag

Parametry

key
AsymmetricAlgorithm

Asymetryczny klucz prywatny do dodania.

passwordBytes
Byte[]

Bajty do użycia jako hasło podczas szyfrowania materiału klucza.

pbeParameters
PbeParameters

Parametry szyfrowania opartego na hasłach (PBE) do użycia podczas szyfrowania materiału klucza.

Zwraca

Wystąpienie torby, które zostało dodane do usługi SafeContents.

Wyjątki

Parametr key to null.

To wystąpienie jest tylko do odczytu.

Eksportowanie klucza nie powiodło się.

Zobacz też

Dotyczy

AddShroudedKey(AsymmetricAlgorithm, ReadOnlySpan<Byte>, PbeParameters)

Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs
Źródło:
Pkcs12SafeContents.cs

Dodaje zaszyfrowany asymetryczny klucz prywatny do rozwiązania SafeContents za pośrednictwem nowego Pkcs12ShroudedKeyBag hasła opartego na bajtach w zakresie i zwraca nowo utworzone wystąpienie torby.

public:
 System::Security::Cryptography::Pkcs::Pkcs12ShroudedKeyBag ^ AddShroudedKey(System::Security::Cryptography::AsymmetricAlgorithm ^ key, ReadOnlySpan<System::Byte> passwordBytes, System::Security::Cryptography::PbeParameters ^ pbeParameters);
public System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag AddShroudedKey (System.Security.Cryptography.AsymmetricAlgorithm key, ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters);
member this.AddShroudedKey : System.Security.Cryptography.AsymmetricAlgorithm * ReadOnlySpan<byte> * System.Security.Cryptography.PbeParameters -> System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag
Public Function AddShroudedKey (key As AsymmetricAlgorithm, passwordBytes As ReadOnlySpan(Of Byte), pbeParameters As PbeParameters) As Pkcs12ShroudedKeyBag

Parametry

key
AsymmetricAlgorithm

Asymetryczny klucz prywatny do dodania.

passwordBytes
ReadOnlySpan<Byte>

Bajty do użycia jako hasło podczas szyfrowania materiału klucza.

pbeParameters
PbeParameters

Parametry szyfrowania opartego na hasłach (PBE) do użycia podczas szyfrowania materiału klucza.

Zwraca

Wystąpienie torby, które zostało dodane do usługi SafeContents.

Wyjątki

Parametr key to null.

To wystąpienie jest tylko do odczytu.

Eksportowanie klucza nie powiodło się.

Zobacz też

Dotyczy