Share via


Pkcs8PrivateKeyInfo 類別

定義

啟用 PKCS # 8 PrivateKeyInfo 與 EncryptedPrivateKeyInfo 值的檢查及建立。 此類別無法獲得繼承。

public ref class Pkcs8PrivateKeyInfo sealed
public sealed class Pkcs8PrivateKeyInfo
type Pkcs8PrivateKeyInfo = class
Public NotInheritable Class Pkcs8PrivateKeyInfo
繼承
Pkcs8PrivateKeyInfo

建構函式

Pkcs8PrivateKeyInfo(Oid, Nullable<ReadOnlyMemory<Byte>>, ReadOnlyMemory<Byte>, Boolean)

初始化 Pkcs8PrivateKeyInfo 類別的新執行個體。

屬性

AlgorithmId

取得識別此金鑰所適用之演算法的物件識別碼 (OID) 值。

AlgorithmParameters

取得記憶體值,其中包含與此金鑰相關聯的 BER 編碼演算法參數。

Attributes

取得此私密金鑰之屬性的修改集合。

PrivateKeyBytes

取得代表演算法特定編碼之私密金鑰的記憶體值。

方法

Create(AsymmetricAlgorithm)

匯出指定的金鑰為 PKCS#8 PrivateKeyInfo 並傳回其解碼解譯。

Decode(ReadOnlyMemory<Byte>, Int32, Boolean)

以 PKCS#8 PrivateKeyInfo 的形式讀取提供的資料,並傳回內容的物件檢視。

DecryptAndDecode(ReadOnlySpan<Byte>, ReadOnlyMemory<Byte>, Int32)

使用提供的位元組型密碼解密提供的資料,並將輸出解碼成 PKCS#8 PrivateKeyInfo 的物件檢視。

DecryptAndDecode(ReadOnlySpan<Char>, ReadOnlyMemory<Byte>, Int32)

使用提供的字元型密碼解密提供的資料,並將輸出解碼成 PKCS#8 PrivateKeyInfo 的物件檢視。

Encode()

將此執行個體的屬性資料編碼為 PKCS#8 PrivateKeyInfo 並以位元組陣列的形式傳回編碼。

Encrypt(ReadOnlySpan<Byte>, PbeParameters)

使用指定的位元組型密碼與加密參數加密之後,從這個物件的屬性內容產生 PKCS#8 EncryptedPrivateKeyInfo。

Encrypt(ReadOnlySpan<Char>, PbeParameters)

使用指定的字元型密碼與加密參數加密之後。從這個物件的屬性內容產生 PKCS#8 EncryptedPrivateKeyInfo。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

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

嘗試將此執行個體的屬性資料編碼為 PKCS#8 PrivateKeyInfo,並將結果寫入提供的緩衝區。

TryEncrypt(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)

嘗試使用指定的位元組型密碼與加密參數加密之後,從這個物件的屬性內容產生 PKCS#8 EncryptedPrivateKeyInfo,並將結果寫入提供的緩衝區。

TryEncrypt(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)

嘗試使用指定的字元型密碼與加密參數加密之後,從這個物件的屬性內容產生 PKCS#8 EncryptedPrivateKeyInfo,並將結果寫入提供的緩衝區。

適用於