Share via


Pkcs12SafeContents.AddSecret(Oid, ReadOnlyMemory<Byte>) メソッド

定義

新しい Pkcs12SecretBag を介して、指定された型識別子を持つ ASN.1 BER でエンコードされた値を SafeContents に追加し、新しく作成されたバッグ インスタンスを返します。

public:
 System::Security::Cryptography::Pkcs::Pkcs12SecretBag ^ AddSecret(System::Security::Cryptography::Oid ^ secretType, ReadOnlyMemory<System::Byte> secretValue);
public System.Security.Cryptography.Pkcs.Pkcs12SecretBag AddSecret (System.Security.Cryptography.Oid secretType, ReadOnlyMemory<byte> secretValue);
member this.AddSecret : System.Security.Cryptography.Oid * ReadOnlyMemory<byte> -> System.Security.Cryptography.Pkcs.Pkcs12SecretBag
Public Function AddSecret (secretType As Oid, secretValue As ReadOnlyMemory(Of Byte)) As Pkcs12SecretBag

パラメーター

secretType
Oid

シークレット値のデータ型を識別するオブジェクト識別子 (OID)。

secretValue
ReadOnlyMemory<Byte>

追加するシークレットを表す、BER でエンコードされた値。

戻り値

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

例外

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

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

secretValue パラメーターが、ASN.1 BER でエンコードされた 1 つの値を表していません。

適用対象