Rediger

Del via


SecurityTokenManager.CreateSecurityTokenAuthenticator Method

Definition

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

public:
 abstract System::IdentityModel::Selectors::SecurityTokenAuthenticator ^ CreateSecurityTokenAuthenticator(System::IdentityModel::Selectors::SecurityTokenRequirement ^ tokenRequirement, [Runtime::InteropServices::Out] System::IdentityModel::Selectors::SecurityTokenResolver ^ % outOfBandTokenResolver);
public abstract System.IdentityModel.Selectors.SecurityTokenAuthenticator CreateSecurityTokenAuthenticator (System.IdentityModel.Selectors.SecurityTokenRequirement tokenRequirement, out System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);
abstract member CreateSecurityTokenAuthenticator : System.IdentityModel.Selectors.SecurityTokenRequirement * SecurityTokenResolver -> System.IdentityModel.Selectors.SecurityTokenAuthenticator
Public MustOverride Function CreateSecurityTokenAuthenticator (tokenRequirement As SecurityTokenRequirement, ByRef outOfBandTokenResolver As SecurityTokenResolver) As SecurityTokenAuthenticator

Parameters

tokenRequirement
SecurityTokenRequirement

A SecurityTokenRequirement that specifies the security token requirements.

outOfBandTokenResolver
SecurityTokenResolver

A SecurityTokenResolver that determines the security token that matches the specified security token requirements.

Returns

A SecurityTokenAuthenticator that authenticates security tokens in incoming SOAP messages that meet the specified requirements.

Remarks

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.

Applies to