Share via


KeyInfoRetrievalMethod 類別

定義

在使用 XMLDSIG 或 XML 加密時,參考儲存在不同位置上的 KeyInfo 物件。

public ref class KeyInfoRetrievalMethod : System::Security::Cryptography::Xml::KeyInfoClause
public class KeyInfoRetrievalMethod : System.Security.Cryptography.Xml.KeyInfoClause
type KeyInfoRetrievalMethod = class
    inherit KeyInfoClause
Public Class KeyInfoRetrievalMethod
Inherits KeyInfoClause
繼承
KeyInfoRetrievalMethod

備註

類別 KeyInfoRetrievalMethod 代表 <RetrievalMethod> XML 加密和 XML 數位簽名的專案。

KeyInfoRetrievalMethod使用 類別來參考多個 XMLDSIG 簽章或加密 XML 檔中的相同KeyInfo資訊,特別是在參考的資訊很大時。 例如, <RetrievalMethod> 子元素可用來參考 KeyInfoX509Data 包含 X.509v3 憑證鏈結的物件,該鏈結會驗證簽署密鑰。

如需專案的詳細資訊 <RetrievalMethod> ,請參閱 XMLDSIG 規格 的第 4.4.3 節或可在 W3C 網站上取得的 XML 加密規格

建構函式

KeyInfoRetrievalMethod()

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

KeyInfoRetrievalMethod(String)

使用指向受參考的 KeyInfoRetrievalMethod 物件的指定統一資源識別元 (URI),初始化 KeyInfo 類別的新執行個體。

KeyInfoRetrievalMethod(String, String)

使用指向受參考的 KeyInfoRetrievalMethod 物件之指定統一資源識別元 (URI),以及描述要擷取的資料型別之 URI,初始化 KeyInfo 類別的新執行個體。

屬性

Type

取得或設定統一資源識別元 (URI),其描述要擷取資料的型別。

Uri

取得或設定 KeyInfoRetrievalMethod 物件的統一資源識別元 (URI)。

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetXml()

傳回 KeyInfoRetrievalMethod 物件的 XML 表示。

LoadXml(XmlElement)

剖析輸入的 XmlElement 物件,並設定 KeyInfoRetrievalMethod 物件的內部狀態來對應。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於