//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.Configuration { using System.Configuration; /// /// Represents the <oauth/consumer> element in the host's .config file. /// internal class OAuthConsumerElement : ConfigurationElement { /// /// Gets the name of the security sub-element. /// private const string SecuritySettingsConfigName = "security"; /// /// Initializes a new instance of the class. /// internal OAuthConsumerElement() { } /// /// Gets or sets the security settings. /// [ConfigurationProperty(SecuritySettingsConfigName)] public OAuthConsumerSecuritySettingsElement SecuritySettings { get { return (OAuthConsumerSecuritySettingsElement)this[SecuritySettingsConfigName] ?? new OAuthConsumerSecuritySettingsElement(); } set { this[SecuritySettingsConfigName] = value; } } } }