static SecurityProviderUtility()
{
// Load settings from config file.
ConfigurationFile config = ConfigurationFile.Current;
CategorizedSettingsElementCollection settings = config.Settings[SettingsCategory];
settings.Add("ProviderType", DefaultProviderType, "The type to be used for enforcing security.");
settings.Add("IncludedResources", DefaultIncludedResources, "Semicolon delimited list of resources to be secured along with role names.");
settings.Add("ExcludedResources", DefaultExcludedResources, "Semicolon delimited list of resources to be excluded from being secured.");
settings.Add("NotificationSmtpServer", DefaultNotificationSmtpServer, "SMTP server to be used for sending out email notification messages.");
settings.Add("NotificationSenderEmail", DefaultNotificationSenderEmail, "Email address of the sender of email notification messages.");
s_providerType = settings["ProviderType"].ValueAsString(DefaultProviderType);
s_includedResources = settings["IncludedResources"].ValueAsString().ParseKeyValuePairs();
s_excludedResources = settings["ExcludedResources"].ValueAsString().Split(';');
s_notificationSmtpServer = settings["NotificationSmtpServer"].ValueAsString();
s_notificationSenderEmail = settings["NotificationSenderEmail"].ValueAsString();
}