SqlClient mono friendly bits
[mono.git] / mcs / class / System.Web.Extensions / System.Web.ClientServices / ClientFormsIdentity.cs
1 //
2 // System.Web.ClientServices.ClientFormsIdentity
3 //
4 // Authors:
5 //   Marek Habersack (mhabersack@novell.com)
6 //
7 // (C) 2008 Novell, Inc
8 //
9
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30
31 using System;
32 using System.ComponentModel;
33 using System.Net;
34 using System.Security;
35 using System.Security.Principal;
36 using System.Web;
37 using System.Web.Security;
38 using System.Web.UI;
39
40 namespace System.Web.ClientServices
41 {
42         public class ClientFormsIdentity : IDisposable, IIdentity
43         {
44                 string Password {
45                         get;
46                         set;
47                 }
48                 
49                 public CookieContainer AuthenticationCookies {
50                         get;
51                         private set;
52                 }
53                 
54                 public string AuthenticationType {
55                         get;
56                         private set;
57                 }
58                 
59                 public bool IsAuthenticated {
60                         get;
61                         private set;
62                 }
63                 
64                 public string Name {
65                         get;
66                         private set;
67                 }
68                 
69                 public MembershipProvider Provider {
70                         get;
71                         private set;
72                 }
73                 
74                 public ClientFormsIdentity (string name, string password, MembershipProvider provider, string authenticationType, bool isAuthenticated, CookieContainer authenticationCookies)
75                 {
76                         Password = password;
77                         Name = name;
78                         Provider = provider;
79                         AuthenticationType = authenticationType;
80                         IsAuthenticated = isAuthenticated;
81                         AuthenticationCookies = authenticationCookies;
82                 }
83                 
84                 public void Dispose ()
85                 {
86                         throw new NotImplementedException ();
87                 }
88                 
89                 public void RevalidateUser ()
90                 {
91                         throw new NotImplementedException ();
92                 }               
93         }
94 }