Share via


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

建構函式

Pkcs12KeyBag(ReadOnlyMemory<Byte>, Boolean)

從現有的編碼 PKCS#8 PrivateKeyInfo 值,初始化 Pkcs12KeyBag 的新執行個體。

屬性

Attributes

取得可修改的屬性集合,以使用 SafeBag 值進行編碼。

(繼承來源 Pkcs12SafeBag)
EncodedBagValue

取得此 SafeBag 內容的 ASN.1 BER 編碼。

(繼承來源 Pkcs12SafeBag)
Pkcs8PrivateKey

取得記憶體值,其中包含這個包所傳輸的 PKCS#8 PrivateKeyInfo 值。

方法

Encode()

將 SafeBag 值編碼,並將其傳回作為位元組陣列。

(繼承來源 Pkcs12SafeBag)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetBagId()

取得識別此 SafeBag 內容類型的物件識別碼 (OID)。

(繼承來源 Pkcs12SafeBag)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

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

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

(繼承來源 Pkcs12SafeBag)

適用於