2004-01-11 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / System.Web / System.Web.Security / PassportIdentity.cs
1 //
2 // System.Web.Security.PassportIdentity.cs
3 //
4 // Authors:
5 //   Gonzalo Paniagua Javier (gonzalo@ximian.com)
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 //
8 // (C) 2002 Ximian, Inc (http://www.ximian.com)
9 //
10
11 using System;
12 using System.Security.Principal;
13
14 namespace System.Web.Security
15 {
16         public sealed class PassportIdentity : IIdentity
17         {
18                 [MonoTODO]
19                 public PassportIdentity ()
20                 {
21                         throw new NotImplementedException ();
22                 }
23
24                 ~PassportIdentity ()
25                 {
26                 }
27
28                 public string AuthUrl ()
29                 {
30                         return AuthUrl (null, -1, -1, null, -1, null, -1, -1);
31                 }
32
33 #if (!NET_1_0)
34                 public string AuthUrl (String strReturnUrl)
35                 {
36                         return AuthUrl (strReturnUrl, -1, -1, null, -1, null, -1, -1);
37                 }
38 #endif
39
40                 public string AuthUrl (string strReturnUrl,
41                                        int iTimeWindow,
42                                        bool fForceLogin,
43                                        string strCoBrandedArgs,
44                                        int iLangID,
45                                        string strNameSpace,
46                                        int iKPP,
47                                        bool bUseSecureAuth)
48                 {
49                         return AuthUrl (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
50                 }
51
52                 [MonoTODO]
53                 public string AuthUrl (string strReturnUrl,
54                                        int iTimeWindow,
55                                        int iForceLogin,
56                                        string strCoBrandedArgs,
57                                        int iLangID,
58                                        string strNameSpace,
59                                        int iKPP,
60                                        int iUseSecureAuth)
61                 {
62                         throw new NotImplementedException ();
63                 }
64
65                 public string AuthUrl2 ()
66                 {
67                         return AuthUrl2 (null, -1, -1, null, -1, null, -1, -1);
68                 }
69
70 #if (!NET_1_0)
71                 public string AuthUrl2 (String strReturnUrl)
72                 {
73                         return AuthUrl2 (strReturnUrl, -1, -1, null, -1, null, -1, -1);
74                 }
75 #endif
76
77                 public string AuthUrl2 (string strReturnUrl,
78                                         int iTimeWindow,
79                                         bool fForceLogin,
80                                         string strCoBrandedArgs,
81                                         int iLangID,
82                                         string strNameSpace,
83                                         int iKPP,
84                                         bool bUseSecureAuth)
85                 {
86                         return AuthUrl2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
87                 }
88
89                 [MonoTODO]
90                 public string AuthUrl2 (string strReturnUrl,
91                                         int iTimeWindow,
92                                         int iForceLogin,
93                                         string strCoBrandedArgs,
94                                         int iLangID,
95                                         string strNameSpace,
96                                         int iKPP,
97                                         int iUseSecureAuth)
98                 {
99                         throw new NotImplementedException ();
100                 }
101
102                 [MonoTODO]
103                 public static string Compress (string strData)
104                 {
105                         throw new NotImplementedException ();
106                 }
107
108                 [MonoTODO]
109                 public static bool CryptIsValid ()
110                 {
111                         throw new NotImplementedException ();
112                 }
113
114                 [MonoTODO]
115                 public static int CryptPutHost (string strHost)
116                 {
117                         throw new NotImplementedException ();
118                 }
119
120                 [MonoTODO]
121                 public static int CryptPutSite (string strSite)
122                 {
123                         throw new NotImplementedException ();
124                 }
125
126                 [MonoTODO]
127                 public static string Decompress (string strData)
128                 {
129                         throw new NotImplementedException ();
130                 }
131
132                 [MonoTODO]
133                 public static string Decrypt (string strData)
134                 {
135                         throw new NotImplementedException ();
136                 }
137
138                 [MonoTODO]
139                 public static string Encrypt (string strData)
140                 {
141                         throw new NotImplementedException ();
142                 }
143
144                 [MonoTODO]
145                 public object GetCurrentConfig (string strAttribute)
146                 {
147                         throw new NotImplementedException ();
148                 }
149
150                 [MonoTODO]
151                 public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
152                 {
153                         throw new NotImplementedException ();
154                 }
155
156                 [MonoTODO]
157                 public string GetDomainFromMemberName (string strMemberName)
158                 {
159                         throw new NotImplementedException ();
160                 }
161
162                 public bool GetIsAuthenticated (int iTimeWindow, bool bForceLogin, bool bCheckSecure)
163                 {
164                         return this.GetIsAuthenticated (iTimeWindow, (bForceLogin ? 1 : 0), (bCheckSecure ? 1 : 0));
165                 }
166
167                 [MonoTODO]
168                 public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
169                 {
170                         throw new NotImplementedException ();
171                 }
172
173                 public string GetLoginChallenge ()
174                 {
175                         return GetLoginChallenge (null, -1, -1, null, -1, null, -1, -1, null);
176                 }
177
178 #if (!NET_1_0)
179                 public string GetLoginChallenge (String strReturnUrl)
180                 {
181                         return GetLoginChallenge (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
182                 }
183 #endif
184
185                 [MonoTODO]
186                 public string GetLoginChallenge (string szRetURL,
187                                                  int iTimeWindow,
188                                                  int fForceLogin,
189                                                  string szCOBrandArgs,
190                                                  int iLangID,
191                                                  string strNameSpace,
192                                                  int iKPP,
193                                                  int iUseSecureAuth,
194                                                  object oExtraParams)
195                 {
196                         throw new NotImplementedException ();
197                 }
198
199                 [MonoTODO]
200                 public object GetOption (string strOpt)
201                 {
202                         throw new NotImplementedException ();
203                 }
204
205                 [MonoTODO]
206                 public object GetProfileObject (string strProfileName)
207                 {
208                         throw new NotImplementedException ();
209                 }
210
211                 [MonoTODO]
212                 public bool HasFlag (int iFlagMask)
213                 {
214                         throw new NotImplementedException ();
215                 }
216
217                 [MonoTODO]
218                 public bool HasProfile (string strProfile)
219                 {
220                         throw new NotImplementedException ();
221                 }
222
223                 [MonoTODO]
224                 public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
225                 {
226                         throw new NotImplementedException ();
227                 }
228
229                 public int LoginUser ()
230                 {
231                         return LoginUser (null, -1, -1, null, -1, null, -1, -1, null);
232                 }
233
234 #if (!NET_1_0)
235                 public int LoginUser (String strReturnUrl)
236                 {
237                         return LoginUser (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
238                 }
239 #endif
240
241                 public int LoginUser (string szRetURL,
242                                       int iTimeWindow,
243                                       bool fForceLogin,
244                                       string szCOBrandArgs,
245                                       int iLangID,
246                                       string strNameSpace,
247                                       int iKPP,
248                                       bool fUseSecureAuth,
249                                       object oExtraParams)
250                 {
251                         return LoginUser (szRetURL, iTimeWindow, (fForceLogin ? 1 : 0), szCOBrandArgs, iLangID, strNameSpace, iKPP, (fUseSecureAuth ? 1 : 0), null);
252                 }
253
254                 [MonoTODO]
255                 public int LoginUser (string szRetURL,
256                                       int iTimeWindow,
257                                       int fForceLogin,
258                                       string szCOBrandArgs,
259                                       int iLangID,
260                                       string strNameSpace,
261                                       int iKPP,
262                                       int iUseSecureAuth,
263                                       object oExtraParams)
264                 {
265                         throw new NotImplementedException ();
266                 }
267
268                 public string LogoTag ()
269                 {
270                         return LogoTag (null, -1, -1, null, -1, -1, null, -1, -1);
271                 }
272
273 #if (!NET_1_0)
274                 public string LogoTag (String strReturnUrl)
275                 {
276                         return LogoTag (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
277                 }
278 #endif
279
280                 public string LogoTag (string strReturnUrl,
281                                        int iTimeWindow,
282                                        bool fForceLogin,
283                                        string strCoBrandedArgs,
284                                        int iLangID,
285                                        bool fSecure,
286                                        string strNameSpace,
287                                        int iKPP,
288                                        bool bUseSecureAuth)
289                 {
290                         return LogoTag (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
291                 }
292
293                 [MonoTODO]
294                 public string LogoTag (string strReturnUrl,
295                                        int iTimeWindow,
296                                        int iForceLogin,
297                                        string strCoBrandedArgs,
298                                        int iLangID,
299                                        int iSecure,
300                                        string strNameSpace,
301                                        int iKPP,
302                                        int iUseSecureAuth)
303                 {
304                         throw new NotImplementedException ();
305                 }
306
307                 public string LogoTag2 ()
308                 {
309                         return LogoTag2 (null, -1, -1, null, -1, -1, null, -1, -1);
310                 }
311
312 #if (!NET_1_0)
313                 public string LogoTag2 (String strReturnUrl)
314                 {
315                         return LogoTag2 (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
316                 }
317 #endif
318
319                 public string LogoTag2 (string strReturnUrl,
320                                         int iTimeWindow,
321                                         bool fForceLogin,
322                                         string strCoBrandedArgs,
323                                         int iLangID,
324                                         bool fSecure,
325                                         string strNameSpace,
326                                         int iKPP,
327                                         bool bUseSecureAuth)
328                 {
329                         return LogoTag2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
330                 }
331
332                 [MonoTODO]
333                 public string LogoTag2 (string strReturnUrl,
334                                         int iTimeWindow,
335                                         int iForceLogin,
336                                         string strCoBrandedArgs,
337                                         int iLangID,
338                                         int iSecure,
339                                         string strNameSpace,
340                                         int iKPP,
341                                         int iUseSecureAuth)
342                 {
343                         throw new NotImplementedException ();
344                 }
345
346                 public string LogoutURL ()
347                 {
348                         return LogoutURL (null, null, -1, null, -1);
349                 }
350
351                 [MonoTODO]
352                 public string LogoutURL (string szReturnURL,
353                                          string szCOBrandArgs,
354                                          int iLangID,
355                                          string strDomain,
356                                          int iUseSecureAuth)
357                 {
358                         throw new NotImplementedException ();
359                 }
360
361                 [MonoTODO]
362                 public void SetOption (string strOpt, object vOpt)
363                 {
364                         throw new NotImplementedException ();
365                 }
366
367                 [MonoTODO]
368                 public static void SignOut (string strSignOutDotGifFileName)
369                 {
370                         throw new NotImplementedException ();
371                 }
372
373                 [MonoTODO]
374                 public object Ticket (string strAttribute)
375                 {
376                         throw new NotImplementedException ();
377                 }
378
379                 [MonoTODO]
380                 public string AuthenticationType
381                 {
382                         get {
383                                 throw new NotImplementedException ();
384                         }
385                 }
386
387                 [MonoTODO]
388                 public int Error
389                 {
390                         get {
391                                 throw new NotImplementedException ();
392                         }
393                 }
394
395                 [MonoTODO]
396                 public bool GetFromNetworkServer
397                 {
398                         get {
399                                 throw new NotImplementedException ();
400                         }
401                 }
402
403                 [MonoTODO]
404                 public bool HasSavedPassword
405                 {
406                         get {
407                                 throw new NotImplementedException ();
408                         }
409                 }
410
411                 [MonoTODO]
412                 public bool HasTicket
413                 {
414                         get {
415                                 throw new NotImplementedException ();
416                         }
417                 }
418
419                 [MonoTODO]
420                 public string HexPUID
421                 {
422                         get {
423                                 throw new NotImplementedException ();
424                         }
425                 }
426
427                 [MonoTODO]
428                 public bool IsAuthenticated
429                 {
430                         get {
431                                 throw new NotImplementedException ();
432                         }
433                 }
434
435                 [MonoTODO]
436                 public string this [string strProfileName]
437                 {
438                         get {
439                                 throw new NotImplementedException ();
440                         }
441                 }
442
443                 [MonoTODO]
444                 public string Name
445                 {
446                         get {
447                                 throw new NotImplementedException ();
448                         }
449                 }
450
451                 [MonoTODO]
452                 public int TicketAge
453                 {
454                         get {
455                                 throw new NotImplementedException ();
456                         }
457                 }
458
459                 [MonoTODO]
460                 public int TimeSinceSignIn
461                 {
462                         get {
463                                 throw new NotImplementedException ();
464                         }
465                 }
466         }
467 }
468