ClientCredentialsSecurityTokenManager.CreateSecurityTokenAuthenticator 方法

定义

创建安全令牌身份验证器。

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

参数

outOfBandTokenResolver
SecurityTokenResolver

此方法返回时,包含 SecurityTokenResolver。 此参数未经初始化即被传递。

返回

SecurityTokenAuthenticator

SecurityTokenAuthenticator 对象。

例外

tokenRequirementnull

注解

SecurityTokenAuthenticator 负责验证安全令牌和提供 IAuthorizationPolicy 以获取符合 ServiceModelSecurityTokenRequirement 中的指定需求的安全令牌声明。

适用于