EncryptedSecurityTokenHandler 類別

定義

加密安全性權杖的權杖處理常式。 處理 EncryptedSecurityToken 型別的權杖。

public ref class EncryptedSecurityTokenHandler : System::IdentityModel::Tokens::SecurityTokenHandler
public class EncryptedSecurityTokenHandler : System.IdentityModel.Tokens.SecurityTokenHandler
type EncryptedSecurityTokenHandler = class
    inherit SecurityTokenHandler
Public Class EncryptedSecurityTokenHandler
Inherits SecurityTokenHandler
繼承
EncryptedSecurityTokenHandler

備註

標記處理程式,會依 XML 加密語法和處理規格中所定義,串行<xenc:EncryptedData>化和還原串行化EncryptedSecurityToken專案和EncryptedKeyIdentifierClause元素中的物件<xenc:EncryptedKey>

建構函式

EncryptedSecurityTokenHandler()

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

屬性

CanValidateToken

取得值,指出處理常式是否支援驗證安全性權杖。

(繼承來源 SecurityTokenHandler)
CanWriteToken

取得值,指出處理常式是否提供語彙基元的序列化功能。

Configuration

取得或設定為目前執行個體提供組態的 SecurityTokenHandlerConfiguration 物件。

(繼承來源 SecurityTokenHandler)
ContainingCollection

取得包含目前執行個體的權杖處理常式集合。

(繼承來源 SecurityTokenHandler)
KeyInfoSerializer

取得或設定 SecurityTokenSerializer,它會用來序列化和還原序列化 <xenc:EncryptedData> 項目中的金鑰識別項。

TokenType

取得目前執行個體所處理的權杖類型。

方法

CanReadKeyIdentifierClause(XmlReader)

傳回值,這個值指出目前的 XML 項目是否指向 <xenc:EncryptedKey> 項目,此項目可以由這個執行個體還原序列化成SecurityKeyIdentifierClause

CanReadToken(String)

傳回值,這個值表示指定的字串是否可還原序列化為此執行個體所處理的型別語彙基元。

(繼承來源 SecurityTokenHandler)
CanReadToken(XmlReader)

傳回值,指出讀取器是否指向 <xenc:EncryptedData> 項目。

CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause)

傳回值,指出這個執行個體是否能夠序列化指定的金鑰識別碼子句。

(繼承來源 SecurityTokenHandler)
CreateSecurityTokenReference(SecurityToken, Boolean)

在衍生類別中覆寫時,建立該類別所處理之權杖的安全性權杖參考。 這個方法通常是由安全性權杖服務 (STS) 呼叫。

(繼承來源 SecurityTokenHandler)
CreateToken(SecurityTokenDescriptor)

在衍生類別中覆寫時,請使用指定的權杖描述元建立安全性權杖。 安全性權杖服務 (STS) 會呼叫這個方法。

(繼承來源 SecurityTokenHandler)
DetectReplayedToken(SecurityToken)

當在衍生類別中覆寫時,如果指定的權杖被偵測為被重新執行,則擲回例外狀況。

(繼承來源 SecurityTokenHandler)
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetTokenTypeIdentifiers()

取得目前執行個體所處理的語彙基元的型別識別項 URI。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
LoadCustomConfiguration(XmlNodeList)

在衍生類別中覆寫時,從 XML 載入自訂組態。

(繼承來源 SecurityTokenHandler)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ReadKeyIdentifierClause(XmlReader)

從 XML 資料流讀取 EncryptedKeyIdentifierClause

ReadToken(String)

在衍生類別中覆寫時,將指定字串還原序列化為該衍生類別所處理之類型的權仗。

(繼承來源 SecurityTokenHandler)
ReadToken(XmlReader)

讀取加密的安全性權杖。

ReadToken(XmlReader, SecurityTokenResolver)

在衍生類別中覆寫時,使用指定的權仗解析程式,將指定 XML 讀取器所參考的 XML 還原序列化為權杖,此權杖的型別由該衍生類別處理。

(繼承來源 SecurityTokenHandler)
ToString()

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

(繼承來源 Object)
TraceTokenValidationFailure(SecurityToken, String)

當啟用追蹤時,在安全性權杖驗證期間追蹤失敗事件。

(繼承來源 SecurityTokenHandler)
TraceTokenValidationSuccess(SecurityToken)

當啟用追蹤時,追蹤安全性權杖驗證成功事件。

(繼承來源 SecurityTokenHandler)
ValidateToken(SecurityToken)

在衍生類別中覆寫時,驗證指定的安全性權杖。 權杖必須是由衍生類別所處理的型別。

(繼承來源 SecurityTokenHandler)
WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause)

在衍生類別中覆寫時,將指定的金鑰識別碼子句序列化為 XML。 金鑰識別項子句必須是衍生類別所支援的型別。

(繼承來源 SecurityTokenHandler)
WriteToken(SecurityToken)

在衍生類別中覆寫時,將指定的安全性權杖序列化為字串。 權杖必須是由衍生類別所處理的型別。

(繼承來源 SecurityTokenHandler)
WriteToken(XmlWriter, SecurityToken)

使用 XML 寫入器,寫入加密的安全性權杖。

適用於