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)

如果已存在,更新權杖的值。

適用於