Share via


Pkcs12SafeContents.AddShroudedKey メソッド

定義

オーバーロード

AddShroudedKey(AsymmetricAlgorithm, String, PbeParameters)

文字列内の文字ベースのパスワードから新しい Pkcs12ShroudedKeyBag を介して SafeContents に暗号化された非対称秘密キーを追加し、新しく作成されたバッグ インスタンスを返します。

AddShroudedKey(AsymmetricAlgorithm, ReadOnlySpan<Char>, PbeParameters)

スパン内の文字ベースのパスワードから新しい Pkcs12ShroudedKeyBag を介して SafeContents に暗号化された非対称秘密キーを追加し、新しく作成されたバッグ インスタンスを返します。

AddShroudedKey(AsymmetricAlgorithm, Byte[], PbeParameters)

配列内のバイトベースのパスワードから新しい Pkcs12ShroudedKeyBag を介して SafeContents に暗号化された非対称秘密キーを追加し、新しく作成されたバッグ インスタンスを返します。

AddShroudedKey(AsymmetricAlgorithm, ReadOnlySpan<Byte>, PbeParameters)

スパン内のバイトベースのパスワードから新しい Pkcs12ShroudedKeyBag を介して SafeContents に暗号化された非対称秘密キーを追加し、新しく作成されたバッグ インスタンスを返します。

AddShroudedKey(AsymmetricAlgorithm, String, PbeParameters)

ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs

文字列内の文字ベースのパスワードから新しい Pkcs12ShroudedKeyBag を介して SafeContents に暗号化された非対称秘密キーを追加し、新しく作成されたバッグ インスタンスを返します。

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

パラメーター

key
AsymmetricAlgorithm

追加する非対称秘密キー。

password
String

キー マテリアルを暗号化するときに使用するパスワード。

pbeParameters
PbeParameters

キー マテリアルを暗号化するときに使用する、パスワードベースの暗号化 (PBE) パラメーター。

戻り値

SafeContents に追加されたバッグ インスタンス。

例外

key パラメーターが null です。

このインスタンスは読み取り専用です。

キーのエクスポートに失敗しました。

こちらもご覧ください

適用対象

AddShroudedKey(AsymmetricAlgorithm, ReadOnlySpan<Char>, PbeParameters)

ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs

スパン内の文字ベースのパスワードから新しい Pkcs12ShroudedKeyBag を介して SafeContents に暗号化された非対称秘密キーを追加し、新しく作成されたバッグ インスタンスを返します。

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

パラメーター

key
AsymmetricAlgorithm

追加する非対称秘密キー。

password
ReadOnlySpan<Char>

キー マテリアルを暗号化するときに使用するパスワード。

pbeParameters
PbeParameters

キー マテリアルを暗号化するときに使用する、パスワードベースの暗号化 (PBE) パラメーター。

戻り値

SafeContents に追加されたバッグ インスタンス。

例外

key パラメーターが null です。

このインスタンスは読み取り専用です。

キーのエクスポートに失敗しました。

こちらもご覧ください

適用対象

AddShroudedKey(AsymmetricAlgorithm, Byte[], PbeParameters)

ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs

配列内のバイトベースのパスワードから新しい Pkcs12ShroudedKeyBag を介して SafeContents に暗号化された非対称秘密キーを追加し、新しく作成されたバッグ インスタンスを返します。

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

パラメーター

key
AsymmetricAlgorithm

追加する非対称秘密キー。

passwordBytes
Byte[]

キー マテリアルを暗号化するときにパスワードとして使用するバイト。

pbeParameters
PbeParameters

キー マテリアルを暗号化するときに使用する、パスワードベースの暗号化 (PBE) パラメーター。

戻り値

SafeContents に追加されたバッグ インスタンス。

例外

key パラメーターが null です。

このインスタンスは読み取り専用です。

キーのエクスポートに失敗しました。

こちらもご覧ください

適用対象

AddShroudedKey(AsymmetricAlgorithm, ReadOnlySpan<Byte>, PbeParameters)

ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs
ソース:
Pkcs12SafeContents.cs

スパン内のバイトベースのパスワードから新しい Pkcs12ShroudedKeyBag を介して SafeContents に暗号化された非対称秘密キーを追加し、新しく作成されたバッグ インスタンスを返します。

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

パラメーター

key
AsymmetricAlgorithm

追加する非対称秘密キー。

passwordBytes
ReadOnlySpan<Byte>

キー マテリアルを暗号化するときにパスワードとして使用するバイト。

pbeParameters
PbeParameters

キー マテリアルを暗号化するときに使用する、パスワードベースの暗号化 (PBE) パラメーター。

戻り値

SafeContents に追加されたバッグ インスタンス。

例外

key パラメーターが null です。

このインスタンスは読み取り専用です。

キーのエクスポートに失敗しました。

こちらもご覧ください

適用対象