SecurityTokenResolver.TryResolveTokenCore 方法

定义

尝试检索在指定对象中引用的键。

重载

名称 说明
TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken)

在派生类中重写时,尝试检索与指定密钥标识符中包含的至少一个密钥标识符子句匹配的安全令牌。

TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)

在派生类中重写时,尝试解析与指定密钥标识符子句匹配的安全令牌。

TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken)

Source:
SecurityTokenResolver.cs
Source:
SecurityTokenResolver.cs
Source:
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.

注解

该方法 TryResolveTokenCoreTryResolveTokenResolveToken 方法调用。

适用于

TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)

Source:
SecurityTokenResolver.cs
Source:
SecurityTokenResolver.cs
Source:
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.

注解

该方法 TryResolveTokenCoreTryResolveTokenResolveToken 方法调用。

适用于