共用方式為


SamlSecurityTokenHandler.TryResolveIssuerToken 方法

定義

將簽署金鑰識別碼解析為 SecurityToken。

protected:
 virtual bool TryResolveIssuerToken(System::IdentityModel::Tokens::SamlAssertion ^ assertion, System::IdentityModel::Selectors::SecurityTokenResolver ^ issuerResolver, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::SecurityToken ^ % token);
protected virtual bool TryResolveIssuerToken (System.IdentityModel.Tokens.SamlAssertion assertion, System.IdentityModel.Selectors.SecurityTokenResolver issuerResolver, out System.IdentityModel.Tokens.SecurityToken token);
abstract member TryResolveIssuerToken : System.IdentityModel.Tokens.SamlAssertion * System.IdentityModel.Selectors.SecurityTokenResolver * SecurityToken -> bool
override this.TryResolveIssuerToken : System.IdentityModel.Tokens.SamlAssertion * System.IdentityModel.Selectors.SecurityTokenResolver * SecurityToken -> bool
Protected Overridable Function TryResolveIssuerToken (assertion As SamlAssertion, issuerResolver As SecurityTokenResolver, ByRef token As SecurityToken) As Boolean

參數

assertion
SamlAssertion

要為其解析簽發者權杖的 SamlAssertion

issuerResolver
SecurityTokenResolver

與這個處理常式相關聯的目前 SecurityTokenResolver

token
SecurityToken

這個方法傳回時,如果已成功解析權杖,會包含已解析的安全性權杖。

傳回

如果權杖已解析則為 true

適用於