共用方式為


WSTrustServiceContract.GetSecurityHeaderTokenResolver(RequestContext) 方法

定義

傳回 SecurityTokenResolver,它會解析下列包含在目前 WCF 訊息要求安全性標頭中的安全性權杖:保護權杖、簽署,或帶正負號的簽署支援權杖。

protected:
 virtual System::IdentityModel::Selectors::SecurityTokenResolver ^ GetSecurityHeaderTokenResolver(System::ServiceModel::Channels::RequestContext ^ requestContext);
protected virtual System.IdentityModel.Selectors.SecurityTokenResolver GetSecurityHeaderTokenResolver (System.ServiceModel.Channels.RequestContext requestContext);
abstract member GetSecurityHeaderTokenResolver : System.ServiceModel.Channels.RequestContext -> System.IdentityModel.Selectors.SecurityTokenResolver
override this.GetSecurityHeaderTokenResolver : System.ServiceModel.Channels.RequestContext -> System.IdentityModel.Selectors.SecurityTokenResolver
Protected Overridable Function GetSecurityHeaderTokenResolver (requestContext As RequestContext) As SecurityTokenResolver

參數

requestContext
RequestContext

與要求相關聯的內容。

傳回

還原序列化 RST UseKey 項目或 RST RenewTarget 項目時,安全性權杖解析程式用於解析任何 SecurityTokenIdentifiers。

例外狀況

requestContextnull

備註

當還原序列化 RST UseKey 元素或 RST RenewTarget 元素時,這會 SecurityTokenResolver 用來解析任何 SecurityTokenIdentifiers。

適用於