KeyAgreeRecipientInfo 類別

定義

KeyAgreeRecipientInfo 類別會定義金鑰協議的收件者資訊。 「金鑰協議」(Key Agreement) 演算法通常都會使用 Diffie-Hellman 金鑰協議演算法,其中建立共用編譯密碼金鑰的雙方,都必須參與此金鑰的產生過程,等於雙方都認可這把金鑰。 相較之下,「金鑰傳輸」演算法只由單方面產生金鑰,然後再傳送或傳輸給另一方。

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

備註

這個類別沒有公用建構函式;因此,它無法公開具現化。 它是可從 屬性存取 EnvelopedCms.RecipientInfos 的唯讀類別。

屬性

Date

Date 屬性會擷取發行者開始進行金鑰協議通訊協定的日期和時間。

EncryptedKey

EncryptedKey 屬性會擷取經過加密的收件者金鑰設定資料。

KeyEncryptionAlgorithm

KeyEncryptionAlgorithm 屬性會擷取用來執行金鑰協議的演算法。

OriginatorIdentifierOrKey

OriginatorIdentifierOrKey 屬性會擷取擔保此金鑰之演算法的金鑰協議發行者相關資訊。

OtherKeyAttribute

OtherKeyAttribute 屬性 (Property) 會擷取金鑰設定資料的屬性 (Attribute)。

RecipientIdentifier

RecipientIdentifier 屬性會擷取收件者的識別項。

Type

Type 屬性會擷取收件者的類型。 建立 CMS/PKCS #7 訊息發出者與收件者之間的金鑰時,究竟要使用兩種主要通訊協定中的哪一種,由收件者的類型決定。

(繼承來源 RecipientInfo)
Version

Version 屬性會擷取金鑰協議收件者的版本。 這個類別中的物件會自動設定這個值,值表示收件者參與金鑰協定演算法。

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於

另請參閱