summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId/RelyingParty/FailedAuthenticationResponse.cs
blob: 59abbc6052f13537a18064265d7c29cf06c51b4a (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
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace DotNetOpenId.RelyingParty {
	[DebuggerDisplay("{Exception.Message}")]
	class FailedAuthenticationResponse : IAuthenticationResponse {
		public FailedAuthenticationResponse(Exception exception) {
			Exception = exception;
		}

		#region IAuthenticationResponse Members

		public IDictionary<string, string> GetCallbackArguments() {
			return new Dictionary<string, string>();
		}

		public string GetCallbackArgument(string key) {
			return null;
		}

		public T GetExtension<T>() where T : DotNetOpenId.Extensions.IExtensionResponse, new() {
			return default(T);
		}

		public DotNetOpenId.Extensions.IExtensionResponse GetExtension(Type extensionType) {
			return null;
		}

		public Identifier ClaimedIdentifier {
			get { return null; }
		}

		public string FriendlyIdentifierForDisplay {
			get { return null; }
		}

		public AuthenticationStatus Status {
			get { return AuthenticationStatus.Failed; }
		}

		public Exception Exception { get; private set; }

		#endregion
	}
}