共用方式為


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 中指定之需求的安全性權杖宣告。

適用於