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

与该请求关联的上下文。

返回

SecurityTokenResolver

安全令牌解析程序,用于在反序列化 RST UseKey 元素或 RST RenewTarget 元素时,解析任何 SecurityTokenIdentifiers。

例外

requestContextnull

注解

SecurityTokenResolver 用于在反序列化 Rst UseKey 元素或 Rst RenewTarget 元素时解析任何 SecurityTokenIdentifiers。

适用于