Share via


ISecurityContextSecurityTokenCache 介面

定義

實作之後,這個介面會指定安全性內容權杖快取的合約。

public interface class ISecurityContextSecurityTokenCache
public interface ISecurityContextSecurityTokenCache
type ISecurityContextSecurityTokenCache = interface
Public Interface ISecurityContextSecurityTokenCache
衍生

方法

AddContext(SecurityContextSecurityToken)

將安全性內容的安全性權杖加入權杖快取。

ClearContexts()

清除內容的權杖快取。

GetAllContexts(UniqueId)

取得與指定內容識別碼相符之安全性內容之安全性權杖識別碼的集合。

GetContext(UniqueId, UniqueId)

取得與指定之內容識別碼及產生相符的安全性內容之安全性權杖識別碼。

RemoveAllContexts(UniqueId)

從快取中移除所有符合指定之內容識別碼的權杖。

RemoveContext(UniqueId, UniqueId)

從快取中移除所有符合指定之內容識別碼及產生的權杖。

TryAddContext(SecurityContextSecurityToken)

嘗試將權杖加入快取。

UpdateContextCachingTime(SecurityContextSecurityToken, DateTime)

更新快取中權杖的到期日。

適用於