Returns the SecurityTokenResolver that resolves the following security tokens contained in the current WCF message request's security header: protection token, endorsing, or signed endorsing supporting tokens.
Namespace: Microsoft.IdentityModel.Protocols.WSTrust
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim requestContext As RequestContext
Dim returnValue As SecurityTokenResolver

returnValue = Me.GetSecurityHeaderTokenResolver(requestContext)

Syntax

Visual Basic
Protected Overridable Function GetSecurityHeaderTokenResolver ( _
		requestContext As RequestContext _
) As SecurityTokenResolver
C#
protected virtual SecurityTokenResolver GetSecurityHeaderTokenResolver (
		RequestContext requestContext
)
C++
protected:
virtual SecurityTokenResolver^ GetSecurityHeaderTokenResolver (
		RequestContext^ requestContext
)
J#
protected SecurityTokenResolver GetSecurityHeaderTokenResolver (
		RequestContext requestContext
)
JScript
protected function GetSecurityHeaderTokenResolver (
		requestContext : RequestContext
) : SecurityTokenResolver

Parameters

requestContext

Return Value

Returns SecurityTokenResolver.

Exceptions

Exception type Condition
ArgumentNullException

requestContext is null.

Remarks

This SecurityTokenResolver is used to resolve any SecurityTokenIdentifiers when deserializing RST UseKey elements or RST RenewTarget elements.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also