Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IAuthenticationModule.cs « System.Net « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 15119f74da3072b3fac5cece7c648d4f70728c74 (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
//
// System.Net.IAuthenticationModule.cs
//
// Author:
//   Miguel de Icaza (miguel@ximian.com)
//
// (C) Ximian, Inc.  http://www.ximian.com
//

namespace System.Net {

	// <remarks>
	//   Authentication interface for Web client authentication modules.
	// </remarks>
	public interface IAuthenticationModule {
		string AuthenticationType {
			get;
		}

		bool CanPreAuthenticate {
			get;
		}

		bool CanRespond (string challenge);

		Authorization PreAuthenticate (WebRequest request, ICredentials credentials);

		Authorization Respond (string challenge, WebRequest request, ICredentials credentials);
	}
}