summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks/AssociateUnencryptedRequestNoSslCheck.cs
blob: 83c99d71b8446dfc753573e4574aac98614b95c2 (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
//-----------------------------------------------------------------------
// <copyright file="AssociateUnencryptedRequestNoSslCheck.cs" company="Outercurve Foundation">
//     Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.Test.Mocks {
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;
	using DotNetOpenAuth.OpenId.Messages;

	/// <summary>
	/// An associate request message that doesn't throw when
	/// it is used over HTTP (without SSL).
	/// </summary>
	internal class AssociateUnencryptedRequestNoSslCheck : AssociateUnencryptedRequest {
		internal AssociateUnencryptedRequestNoSslCheck(Version version, Uri providerEndpoint)
			: base(version, providerEndpoint) {
		}

		public override void EnsureValidMessage() {
			// We deliberately do NOT call our base class method to avoid throwing
			// when no-encryption is used over an HTTP transport.
		}
	}
}