AuthenticationProperties 类

定义

用于存储有关身份验证会话的状态值的字典。

public ref class AuthenticationProperties
public class AuthenticationProperties
type AuthenticationProperties = class
Public Class AuthenticationProperties
继承
AuthenticationProperties
派生

构造函数

AuthenticationProperties()

初始化 AuthenticationProperties 类的新实例。

AuthenticationProperties(IDictionary<String,String>)

初始化 AuthenticationProperties 类的新实例。

AuthenticationProperties(IDictionary<String,String>, IDictionary<String,Object>)

初始化 AuthenticationProperties 类的新实例。

属性

AllowRefresh

获取或设置是否应允许刷新身份验证会话。

ExpiresUtc

获取或设置身份验证票证的过期时间。

IsPersistent

获取或设置是否在多次请求后保留身份验证会话。

IssuedUtc

获取或设置身份验证票证的颁发时间。

Items

有关身份验证会话的状态值。

Parameters

传递给身份验证处理程序的参数集合。 它们不用于序列化或持久性,仅用于在调用站点之间流动数据。

RedirectUri

获取或设置要用作 http 重定向响应值的完整路径或绝对 URI。

方法

Clone()

返回副本。

GetBool(String)

从集合中获取可为 Boolean null 的 Items

GetDateTimeOffset(String)

从集合中Items获取可为 DateTimeOffset null 的值。

GetParameter<T>(String)

从集合中 Parameters 获取参数。

GetString(String)

从集合中 Items 获取字符串值。

SetBool(String, Nullable<Boolean>)

设置或删除 Boolean 集合中的 Items 值。

SetDateTimeOffset(String, Nullable<DateTimeOffset>)

设置或删除 DateTimeOffset 集合中的 Items 值。

SetParameter<T>(String, T)

在集合中 Parameters 设置参数值。

SetString(String, String)

从集合中设置或删除字符串值 Items

扩展方法

GetTokens(AuthenticationProperties)

返回属性中包含的所有 AuthenticationToken 实例。

GetTokenValue(AuthenticationProperties, String)

返回标记的值。

StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>)

在删除任何旧令牌后存储一组身份验证令牌。

UpdateTokenValue(AuthenticationProperties, String, String)

汇报令牌的值(如果已存在)。

适用于