SecurityTokenResolver.TryResolveTokenCore 方法

定義

嘗試擷取在指定之物件中所參考的金鑰。

多載

TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken)

在衍生類別中覆寫時,嘗試擷取與指定之金鑰識別碼內含的其中一個金鑰識別碼子句相符的安全性權杖。

TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)

在衍生類別中覆寫時,嘗試解析與指定之金鑰識別碼子句相符的安全性權杖。

TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken)

來源:
SecurityTokenResolver.cs
來源:
SecurityTokenResolver.cs
來源:
SecurityTokenResolver.cs

在衍生類別中覆寫時,嘗試擷取與指定之金鑰識別碼內含的其中一個金鑰識別碼子句相符的安全性權杖。

protected:
 abstract bool TryResolveTokenCore(System::IdentityModel::Tokens::SecurityKeyIdentifier ^ keyIdentifier, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::SecurityToken ^ % token);
protected abstract bool TryResolveTokenCore (System.IdentityModel.Tokens.SecurityKeyIdentifier keyIdentifier, out System.IdentityModel.Tokens.SecurityToken token);
abstract member TryResolveTokenCore : System.IdentityModel.Tokens.SecurityKeyIdentifier * SecurityToken -> bool
Protected MustOverride Function TryResolveTokenCore (keyIdentifier As SecurityKeyIdentifier, ByRef token As SecurityToken) As Boolean

參數

keyIdentifier
SecurityKeyIdentifier

要建立安全性權杖的 SecurityKeyIdentifier

token
SecurityToken

當這個方法回傳時,會包含表示指定之金鑰識別碼的 SecurityToken。 這個參數會以未初始化的狀態傳遞。

傳回

如果可以擷取指定之金鑰識別碼的安全性權杖,則為 true,否則為 false

備註

TryResolveTokenCore 方法會被 TryResolveTokenResolveToken 方法呼叫。

適用於

TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)

來源:
SecurityTokenResolver.cs
來源:
SecurityTokenResolver.cs
來源:
SecurityTokenResolver.cs

在衍生類別中覆寫時,嘗試解析與指定之金鑰識別碼子句相符的安全性權杖。

protected:
 abstract bool TryResolveTokenCore(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::SecurityToken ^ % token);
protected abstract bool TryResolveTokenCore (System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause, out System.IdentityModel.Tokens.SecurityToken token);
abstract member TryResolveTokenCore : System.IdentityModel.Tokens.SecurityKeyIdentifierClause * SecurityToken -> bool
Protected MustOverride Function TryResolveTokenCore (keyIdentifierClause As SecurityKeyIdentifierClause, ByRef token As SecurityToken) As Boolean

參數

keyIdentifierClause
SecurityKeyIdentifierClause

要建立安全性權杖的 SecurityKeyIdentifierClause

token
SecurityToken

當這個方法回傳時,會包含表示指定之金鑰識別碼子句的 SecurityToken。 這個參數會以未初始化的狀態傳遞。

傳回

如果可以擷取指定之金鑰識別碼子句的安全性權杖,則為 true,否則為 false

備註

TryResolveTokenCore 方法會被 TryResolveTokenResolveToken 方法呼叫。

適用於