This documentation is archived and is not being maintained.

SecurityTokenManager.CreateSecurityTokenAuthenticator Method

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

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

public abstract SecurityTokenAuthenticator CreateSecurityTokenAuthenticator(
	SecurityTokenRequirement tokenRequirement,
	out SecurityTokenResolver outOfBandTokenResolver


Type: System.IdentityModel.Selectors.SecurityTokenRequirement
A SecurityTokenRequirement that specifies the security token requirements.
Type: System.IdentityModel.Selectors.SecurityTokenResolver%
A SecurityTokenResolver that determines the security token that matches the specified security token requirements.

Return Value

Type: System.IdentityModel.Selectors.SecurityTokenAuthenticator
A SecurityTokenAuthenticator that authenticates security tokens in incoming SOAP messages that meet the specified requirements.

A SecurityTokenManager class provides types that can provide security tokens for outgoing SOAP messages and authenticate security tokens in incoming SOAP messages. The CreateSecurityTokenAuthenticator(SecurityTokenRequirement, SecurityTokenResolver) method returns a class that can authenticate 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.