C# Class GSF.Security.SecurityProviderCache

A helper class that manages the caching of ISecurityProviders.
Exibir arquivo Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
CacheMonitorTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
SecurityProviderCache ( ) : System
SetupPrincipal ( ISecurityProvider provider, bool restore ) : ISecurityProvider
ValidateCurrentProvider ( string username = null ) : void

Method Details

ReauthenticateCurrentPrincipal() public static method

Attempts to reauthenticate the current thread principal after their provider has been removed from the cache.
public static ReauthenticateCurrentPrincipal ( ) : bool
return bool

TryGetCachedProvider() public static method

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.
return bool