Click or drag to resize

SecurityProviderCacheCreateProvider(String, IPrincipal, Boolean, Boolean) Method

Creates a new provider from data cached by the SecurityProviderCache.

Namespace: GSF.Security
Assembly: GSF.Security (in GSF.Security.dll) Version: 2.4.181-beta
Syntax
public static ISecurityProvider CreateProvider(
	string username,
	IPrincipal passthroughPrincipal = null,
	bool autoRefresh = true,
	bool useAlternate = false
)
View Source

Parameters

username  String
The username of the user for which to create a new provider.
passthroughPrincipal  IPrincipal  (Optional)
IPrincipal obtained through alternative authentication mechanisms to provide authentication for the ISecurityProvider.
autoRefresh  Boolean  (Optional)
Indicates whether the provider should be automatically refreshed on a timer.
useAlternate  Boolean  (Optional)
Indicates whether the alternate ISecurityProvider should be used.

Return Value

ISecurityProvider
A new provider initialized from cached data.
See Also