|
SecurityProviderCacheCreateProvider(String, IPrincipal, Boolean, Boolean) Method
|
Namespace: GSF.SecurityAssembly: GSF.Security (in GSF.Security.dll) Version: 2.4.248-beta
Syntaxpublic static ISecurityProvider CreateProvider(
string username,
IPrincipal passthroughPrincipal = null,
bool autoRefresh = true,
bool useAlternate = false
)
Public Shared Function CreateProvider (
username As String,
Optional passthroughPrincipal As IPrincipal = Nothing,
Optional autoRefresh As Boolean = true,
Optional useAlternate As Boolean = false
) As ISecurityProvider
public:
static ISecurityProvider^ CreateProvider(
String^ username,
IPrincipal^ passthroughPrincipal = nullptr,
bool autoRefresh = true,
bool useAlternate = false
)
static member CreateProvider :
username : string *
?passthroughPrincipal : IPrincipal *
?autoRefresh : bool *
?useAlternate : bool
(* Defaults:
let _passthroughPrincipal = defaultArg passthroughPrincipal null
let _autoRefresh = defaultArg autoRefresh true
let _useAlternate = defaultArg useAlternate false
*)
-> ISecurityProvider
GSF.Security.SecurityProviderCache.CreateProvider = function(username, passthroughPrincipal, autoRefresh, useAlternate);
View SourceParameters
- 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
ISecurityProviderA new provider initialized from cached data.
See Also