C# Класс GSF.Security.SecurityProviderCache

A helper class that manages the caching of ISecurityProviders.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ReauthenticateCurrentPrincipal ( ) : bool

Attempts to reauthenticate the current thread principal after their provider has been removed from the cache.

TryGetCachedProvider ( string username, ISecurityProvider &provider ) : bool

Attempts to get cached ISecurityProvider for the given username.

Приватные методы

Метод Описание
CacheMonitorTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
SecurityProviderCache ( ) : System
SetupPrincipal ( ISecurityProvider provider, bool restore ) : ISecurityProvider
ValidateCurrentProvider ( string username = null ) : void

Описание методов

ReauthenticateCurrentPrincipal() публичный статический Метод

Attempts to reauthenticate the current thread principal after their provider has been removed from the cache.
public static ReauthenticateCurrentPrincipal ( ) : bool
Результат bool

TryGetCachedProvider() публичный статический Метод

Attempts to get cached ISecurityProvider for the given username.
public static TryGetCachedProvider ( string username, ISecurityProvider &provider ) : bool
username string Name of the user.
provider ISecurityProvider Security provider to return.
Результат bool