blob: b15c3e345665a9dc166da60e652e1fc16e4ae1bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
//-----------------------------------------------------------------------
// <copyright file="OAuthConsumerElement.cs" company="Andrew Arnott">
// Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.Configuration {
using System.Configuration;
/// <summary>
/// Represents the <oauth/consumer> element in the host's .config file.
/// </summary>
internal class OAuthConsumerElement : ConfigurationElement {
/// <summary>
/// Gets the name of the security sub-element.
/// </summary>
private const string SecuritySettingsConfigName = "security";
/// <summary>
/// Initializes a new instance of the <see cref="OAuthConsumerElement"/> class.
/// </summary>
internal OAuthConsumerElement() {
}
/// <summary>
/// Gets or sets the security settings.
/// </summary>
[ConfigurationProperty(SecuritySettingsConfigName)]
public OAuthConsumerSecuritySettingsElement SecuritySettings {
get { return (OAuthConsumerSecuritySettingsElement)this[SecuritySettingsConfigName] ?? new OAuthConsumerSecuritySettingsElement(); }
set { this[SecuritySettingsConfigName] = value; }
}
}
}
|