共用方式為


SecurityTokenManager.CreateSecurityTokenAuthenticator 方法

定義

取得符合指定之安全性權杖需求的安全性權杖驗證器。

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

參數

tokenRequirement
SecurityTokenRequirement

SecurityTokenRequirement,指定安全性權杖需求。

outOfBandTokenResolver
SecurityTokenResolver

SecurityTokenResolver,判斷安全性權杖是否符合指定的安全性權杖需求。

傳回

SecurityTokenAuthenticator,驗證傳入 SOAP 訊息中的安全性權杖是否符合指定需求。

備註

SecurityTokenManager 類別提供型別,這些型別能夠為傳出 SOAP 訊息提供安全性權杖並驗證傳入 SOAP 訊息中的安全性權杖。 CreateSecurityTokenAuthenticator(SecurityTokenRequirement, SecurityTokenResolver) 方法會傳回類別,這個類別可驗證符合 tokenRequirement 參數中指定條件的安全性權杖。

適用於