語言

Pkcs12SecretBag 類別

定義

代表來自 PKCS#12 的 SecretBag,一個容器,其內容為帶有型別識別碼的任意資料。 此類別無法獲得繼承。

public ref class Pkcs12SecretBag sealed : System::Security::Cryptography::Pkcs::Pkcs12SafeBag
public sealed class Pkcs12SecretBag : System.Security.Cryptography.Pkcs.Pkcs12SafeBag
type Pkcs12SecretBag = class
    inherit Pkcs12SafeBag
Public NotInheritable Class Pkcs12SecretBag
Inherits Pkcs12SafeBag
繼承
Pkcs12SecretBag

屬性

名稱 Description
Attributes

取得可修改的屬性集合,並以 SafeBag 值編碼。

(繼承來源 Pkcs12SafeBag)
EncodedBagValue

取得此保險袋內容物的 ASN.1 BER 編碼。

(繼承來源 Pkcs12SafeBag)
SecretValue

會取得一個包含 BER 編碼內容的記憶體值。

方法

名稱 Description
Encode()

編碼 SafeBag 值並以位元組陣列回傳。

(繼承來源 Pkcs12SafeBag)
GetBagId()

取得物件識別碼(OID),以識別此安全袋的內容類型。

(繼承來源 Pkcs12SafeBag)
GetSecretType()

取得物件識別碼(OID),用以識別秘密值的資料型態。

TryEncode(Span<Byte>, Int32)

嘗試將 SafeBag 值編碼到提供的緩衝區中。

(繼承來源 Pkcs12SafeBag)

適用於