SecurityMessageProperty 類別

定義

包含安全性相關屬性,並會附加至訊息。

public ref class SecurityMessageProperty : IDisposable, System::ServiceModel::Channels::IMessageProperty
public class SecurityMessageProperty : IDisposable, System.ServiceModel.Channels.IMessageProperty
type SecurityMessageProperty = class
    interface IMessageProperty
    interface IDisposable
Public Class SecurityMessageProperty
Implements IDisposable, IMessageProperty
繼承
SecurityMessageProperty
實作

備註

用戶端驗證結果會轉譯成 ServiceSecurityContext 的執行個體,而這個執行個體會使用 SecurityMessageProperty 附加至訊息。 這個屬性可以讓較高層用來實作自訂授權邏輯。

建構函式

SecurityMessageProperty()

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

屬性

ExternalAuthorizationPolicies

取得或設定外部授權原則的集合。

HasIncomingSupportingTokens

指出傳入訊息是否包含至少一個支援的安全性權杖。

IncomingSupportingTokens

取得或設定傳入之支援權杖的集合。

InitiatorToken

取得或設定這個訊息的 SecurityTokenSpecification 啟動器權杖。

OutgoingSupportingTokens

取得傳出之 SupportingTokenSpecification 物件的集合。

ProtectionToken

取得或設定這個訊息的 SecurityTokenSpecification 保護權杖。

RecipientToken

取得或設定這個訊息的 SecurityTokenSpecification 收件者權杖。

SenderIdPrefix

取得或設定這個訊息的寄件者識別碼前置詞。

ServiceSecurityContext

取得或設定這個訊息的 ServiceSecurityContext

TransportToken

取得或設定這個訊息的 SecurityTokenSpecification 傳輸權杖。

方法

CreateCopy()

複製 (Clone) 這個類別的目前執行個體。

Dispose()

處置 (Dispose) 這個類別的目前執行個體。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetOrCreate(Message)

從指定的訊息取得或建立這個類別的執行個體。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於