This documentation is archived and is not being maintained.

SecurityTokenManager.CreateSecurityTokenProvider Method

Gets a security token provider that meets the specified security token requirements.

Namespace:  System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public abstract SecurityTokenProvider CreateSecurityTokenProvider(
	SecurityTokenRequirement tokenRequirement


Type: System.IdentityModel.Selectors.SecurityTokenRequirement
A SecurityTokenRequirement that specifies the security token requirements.

Return Value

Type: System.IdentityModel.Selectors.SecurityTokenProvider
A SecurityTokenProvider that provides security tokens that meet the specified requirements for outgoing SOAP messages.

A SecurityTokenManager class provides types that can provide security tokens for outgoing SOAP messages and authenticate security tokens in incoming SOAP messages. The CreateSecurityTokenProvider(SecurityTokenRequirement) method returns a class that can authenticate security tokens that can provide security tokens that match the criteria specified in the tokenRequirement parameter.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.