SecurityMessageProperty SecurityMessageProperty SecurityMessageProperty SecurityMessageProperty Class

定義

包含安全性相關屬性,並會附加至訊息。Contains security-related properties and is attached to a message.

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
繼承
SecurityMessagePropertySecurityMessagePropertySecurityMessagePropertySecurityMessageProperty
實作

備註

用戶端驗證結果會轉譯成 ServiceSecurityContext 的執行個體,而這個執行個體會使用 SecurityMessageProperty 附加至訊息。Client authentication results are translated into an instance of ServiceSecurityContext, which is attached to the message using a SecurityMessageProperty. 這個屬性可以讓較高層用來實作自訂授權邏輯。This property can be used by higher layers to implement custom authorization logic.

建構函式

SecurityMessageProperty() SecurityMessageProperty() SecurityMessageProperty() SecurityMessageProperty()

初始化 SecurityMessageProperty 類別的新執行個體。Initializes a new instance of the SecurityMessageProperty class.

屬性

ExternalAuthorizationPolicies ExternalAuthorizationPolicies ExternalAuthorizationPolicies ExternalAuthorizationPolicies

取得或設定外部授權原則的集合。Gets or sets a collection of external authorization policies.

HasIncomingSupportingTokens HasIncomingSupportingTokens HasIncomingSupportingTokens HasIncomingSupportingTokens

指出傳入訊息是否包含至少一個支援的安全性權杖。Indicates whether the incoming message contains at least one supporting security token.

IncomingSupportingTokens IncomingSupportingTokens IncomingSupportingTokens IncomingSupportingTokens

取得或設定傳入之支援權杖的集合。Gets or sets a collection of incoming supporting tokens.

InitiatorToken InitiatorToken InitiatorToken InitiatorToken

取得或設定這個訊息的 SecurityTokenSpecification 啟動器權杖。Gets or sets the SecurityTokenSpecification initiator token for this message.

OutgoingSupportingTokens OutgoingSupportingTokens OutgoingSupportingTokens OutgoingSupportingTokens

取得傳出之 SupportingTokenSpecification 物件的集合。Gets a collection of outgoing SupportingTokenSpecification objects.

ProtectionToken ProtectionToken ProtectionToken ProtectionToken

取得或設定這個訊息的 SecurityTokenSpecification 保護權杖。Gets or sets the SecurityTokenSpecification protection token for this message.

RecipientToken RecipientToken RecipientToken RecipientToken

取得或設定這個訊息的 SecurityTokenSpecification 收件者權杖。Gets or sets the SecurityTokenSpecification recipient token for this message.

SenderIdPrefix SenderIdPrefix SenderIdPrefix SenderIdPrefix

取得或設定這個訊息的寄件者識別碼前置詞。Gets or sets the sender ID prefix for this message.

ServiceSecurityContext ServiceSecurityContext ServiceSecurityContext ServiceSecurityContext

取得或設定這個訊息的 ServiceSecurityContextGets or sets the ServiceSecurityContext for this message.

TransportToken TransportToken TransportToken TransportToken

取得或設定這個訊息的 SecurityTokenSpecification 傳輸權杖。Gets or sets the SecurityTokenSpecification transport token for this message.

方法

CreateCopy() CreateCopy() CreateCopy() CreateCopy()

複製 (Clone) 這個類別的目前執行個體。Clones the current instance of this class.

Dispose() Dispose() Dispose() Dispose()

處置 (Dispose) 這個類別的目前執行個體。Disposes of the current instance of this class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetOrCreate(Message) GetOrCreate(Message) GetOrCreate(Message) GetOrCreate(Message)

從指定的訊息取得或建立這個類別的執行個體。Gets or creates an instance of this class from the specified message.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於