語言

Pkcs12KeyBag 類別

定義

代表 PKCS#12 中的 KeyBag,一個容器,其內容為 PKCS#8 PrivateKeyInfo。 此類別無法獲得繼承。

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

建構函式

名稱 Description
Pkcs12KeyBag(ReadOnlyMemory<Byte>, Boolean)

從現有編碼的 PKCS#8 PrivateKeyInfo 值初始化一個 Pkcs12KeyBag 新的實例。

屬性

名稱 Description
Attributes

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

(繼承來源 Pkcs12SafeBag)
EncodedBagValue

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

(繼承來源 Pkcs12SafeBag)
Pkcs8PrivateKey

取得包含 PKCS#8 PrivateKeyInfo 值的記憶體值,該值由此袋傳輸。

方法

名稱 Description
Encode()

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

(繼承來源 Pkcs12SafeBag)
GetBagId()

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

(繼承來源 Pkcs12SafeBag)
TryEncode(Span<Byte>, Int32)

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

(繼承來源 Pkcs12SafeBag)

適用於