summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OpenId/OpenId/Extensions/SimpleRegistration/Constants.cs
blob: 30cd748ecf6720757dab6e3ad0cda2a4878510cd (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// <auto-generated/> // disable StyleCop on this file
//-----------------------------------------------------------------------
// <copyright file="Constants.cs" company="Outercurve Foundation">
//     Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.OpenId.Extensions.SimpleRegistration {
	using System;
	using System.Collections.Generic;
	using System.Text;

	/// <summary>
	/// Simple Registration constants
	/// </summary>
	public static class Constants {
		/// <summary>
		/// Commonly used type URIs to represent the Simple Registration extension.
		/// </summary>
		public static class TypeUris {
			/// <summary>
			/// The URI "http://openid.net/extensions/sreg/1.1".  
			/// </summary>
			/// <remarks>
			/// This is the type URI prescribed by the Simple Registration 1.1 spec. 
			/// http://openid.net/specs/openid-simple-registration-extension-1_1-01.html#anchor3
			/// </remarks>
			public const string Standard = "http://openid.net/extensions/sreg/1.1";

			/// <summary>
			/// The URI "http://openid.net/sreg/1.0"
			/// </summary>
			public const string Variant10 = "http://openid.net/sreg/1.0";

			/// <summary>
			/// The URI "http://openid.net/sreg/1.1"
			/// </summary>
			public const string Variant11 = "http://openid.net/sreg/1.1";
		}

		internal const string sreg_compatibility_alias = "sreg";
		internal const string policy_url = "policy_url";
		internal const string optional = "optional";
		internal const string required = "required";
		internal const string nickname = "nickname";
		internal const string email = "email";
		internal const string fullname = "fullname";
		internal const string dob = "dob";
		internal const string gender = "gender";
		internal const string postcode = "postcode";
		internal const string country = "country";
		internal const string language = "language";
		internal const string timezone = "timezone";
		internal static class Genders {
			internal const string Male = "M";
			internal const string Female = "F";
		}

		/// <summary>
		/// Additional type URIs that this extension is sometimes known by remote parties.
		/// </summary>
		internal static readonly string[] AdditionalTypeUris = new string[] {
			Constants.TypeUris.Variant10,
			Constants.TypeUris.Variant11,
		};
	}
}