SecurityTokenResolver 类

定义

表示一个实用工具类,可以在具有密钥标识符或密钥标识符子句时检索安全令牌或密钥。

public ref class SecurityTokenResolver abstract
public ref class SecurityTokenResolver abstract : System::IdentityModel::Configuration::ICustomIdentityConfiguration
public abstract class SecurityTokenResolver
public abstract class SecurityTokenResolver : System.IdentityModel.Configuration.ICustomIdentityConfiguration
type SecurityTokenResolver = class
type SecurityTokenResolver = class
    interface ICustomIdentityConfiguration
Public MustInherit Class SecurityTokenResolver
Public MustInherit Class SecurityTokenResolver
Implements ICustomIdentityConfiguration
继承
SecurityTokenResolver
派生
实现

注解

SecurityTokenResolver当你具有密钥标识符或密钥标识符子句时,使用该类检索密钥或安全令牌。 给定 ResolveToken 存在密钥标识符或密钥标识符子句的令牌和 TryResolveToken 方法检索令牌。 给定 ResolveSecurityKey 存在密钥标识符子句并 TryResolveSecurityKey 检索密钥。 检索失败时,具有 Try 前缀的方法返回 false ,而没有 Try 前缀的方法将引发异常。

构造函数

名称 说明
SecurityTokenResolver()

初始化 SecurityTokenResolver 类的新实例。

方法

名称 说明
CreateDefaultSecurityTokenResolver(ReadOnlyCollection<SecurityToken>, Boolean)

为指定的安全令牌创建默认安全令牌解析程序。

Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
LoadCustomConfiguration(XmlNodeList)

在派生类中重写时,从 XML 加载自定义配置。

MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ResolveSecurityKey(SecurityKeyIdentifierClause)

获取在指定密钥标识符子句中引用的密钥。

ResolveToken(SecurityKeyIdentifier)

检索与指定密钥标识符中包含的安全密钥标识符子句之一匹配的安全令牌。

ResolveToken(SecurityKeyIdentifierClause)

检索与指定密钥标识符子句匹配的安全令牌。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)
TryResolveSecurityKey(SecurityKeyIdentifierClause, SecurityKey)

尝试检索在指定密钥标识符子句中引用的密钥。

TryResolveSecurityKeyCore(SecurityKeyIdentifierClause, SecurityKey)

尝试检索在指定密钥标识符子句中引用的密钥。

TryResolveToken(SecurityKeyIdentifier, SecurityToken)

尝试检索与指定密钥标识符中包含的密钥标识符子句之一匹配的安全令牌。

TryResolveToken(SecurityKeyIdentifierClause, SecurityToken)

尝试检索与指定密钥标识符子句匹配的安全令牌。

TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken)

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

TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)

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

适用于