Moved configuration section names into constant members.
[dotnetoauth.git] / src / DotNetOpenAuth / OpenId / Configuration.cs
blobb3cbb358d5f05d57a43cc71ada11a84cc8f43b10
1 //-----------------------------------------------------------------------
2 // <copyright file="Configuration.cs" company="Andrew Arnott">
3 // Copyright (c) Andrew Arnott. All rights reserved.
4 // </copyright>
5 //-----------------------------------------------------------------------
7 namespace DotNetOpenAuth.OpenId {
8 using System;
9 using System.Collections.Generic;
10 using System.Linq;
11 using System.Text;
13 /// <summary>
14 /// A set of adjustable properties that control various aspects of OpenID behavior.
15 /// </summary>
16 internal static class Configuration {
17 /// <summary>
18 /// Initializes static members of the <see cref="Configuration"/> class.
19 /// </summary>
20 static Configuration() {
21 MaximumUserAgentAuthenticationTime = TimeSpan.FromMinutes(5);
24 /// <summary>
25 /// Gets the maximum time a user can be allowed to take to complete authentication.
26 /// </summary>
27 /// <remarks>
28 /// This is used to calculate the length of time that nonces are stored.
29 /// This is internal until we can decide whether to leave this static, or make
30 /// it an instance member, or put it inside the IConsumerApplicationStore interface.
31 /// </remarks>
32 internal static TimeSpan MaximumUserAgentAuthenticationTime { get; private set; }