SecurityTokenManager.CreateSecurityTokenProvider Method

Definition

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

public abstract System.IdentityModel.Selectors.SecurityTokenProvider CreateSecurityTokenProvider (System.IdentityModel.Selectors.SecurityTokenRequirement tokenRequirement);

Parameters

tokenRequirement
SecurityTokenRequirement

A SecurityTokenRequirement that specifies the security token requirements.

Returns

A SecurityTokenProvider that provides security tokens that meet the specified requirements for outgoing SOAP messages.

Remarks

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.

Applies to

Termék Verziók
.NET 8 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)