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
)

Parameters

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5, 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft