Share via


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

屬性

Attributes

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

(繼承來源 Pkcs12SafeBag)
EncodedBagValue

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

(繼承來源 Pkcs12SafeBag)
SecretValue

取得記憶體值,其中包含包的 BER 編碼內容。

方法

Encode()

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

(繼承來源 Pkcs12SafeBag)
Equals(Object)

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

(繼承來源 Object)
GetBagId()

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

(繼承來源 Pkcs12SafeBag)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetSecretType()

取得物件識別碼 (OID),該識別碼識別祕密值的資料類型。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

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

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

(繼承來源 Pkcs12SafeBag)

適用於