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

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

namespace System.Security.Principal {

	[Serializable]
	public class GenericIdentity : IIdentity {
		string user_name;
		string authentication_type;
		
		public GenericIdentity (string user_name, string authentication_type)
		{
			this.user_name = user_name;
			this.authentication_type = authentication_type;
		}

		public GenericIdentity (string name)
		{
			this.user_name = user_name;
		}

		public virtual string AuthenticationType {
			get {
				return authentication_type;
			}
		}

		public virtual string Name {
			get {
				return user_name;
			}
		}

		public virtual bool IsAuthenticated {
			get {
				return true;
			}
		}
	}
}