Click or drag to resize

SecurityProviderUtility Class

A helper class containing methods used in the implementation of role-based security.
Inheritance Hierarchy
SystemObject
  GSF.SecuritySecurityProviderUtility

Namespace: GSF.Security
Assembly: GSF.Security (in GSF.Security.dll) Version: 2.4.205-beta
Syntax
public static class SecurityProviderUtility
View Source

The SecurityProviderUtility type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCreateProvider(String, String) Creates a new ISecurityProvider based on the settings in the config file.
Public methodStatic memberCreateProvider(UserData, String) Creates a new ISecurityProvider based on the settings in the config file.
Public methodStatic memberCreateProvider(String, IPrincipal, String) Creates a new ISecurityProvider based on the settings in the config file.
Public methodStatic memberEncryptPassword Encrypts the password to a one-way hash using the SHA1 hash algorithm.
Public methodStatic memberGeneratePassword Generates a random password of the specified length with at least one uppercase letter, one lowercase letter, one special character and one digit.
Public methodStatic memberIsRegexMatch Determines if the specified target matches the specified spec.
Public methodStatic memberIsResourceAccessible Determines if the current user, as defined by the principal, has permission to access the specified resource based on settings in the config file.
Public methodStatic memberIsResourceSecurable Determines if the specified resource is to be secured based on settings in the config file.
Public methodStatic memberSendNotification Sends email notification message to the specified recipient using settings specified in the config file.
Top
See Also