This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[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 //
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
19 // 
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
22 // 
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 //
31
32 using System;
33 using System.Security.Principal;
34
35 namespace System.Web.Security
36 {
37         public sealed class PassportIdentity : IIdentity
38         {
39                 [MonoTODO]
40                 public PassportIdentity ()
41                 {
42                         throw new NotImplementedException ();
43                 }
44
45                 ~PassportIdentity ()
46                 {
47                 }
48
49                 public string AuthUrl ()
50                 {
51                         return AuthUrl (null, -1, -1, null, -1, null, -1, -1);
52                 }
53
54 #if (!NET_1_0)
55                 public string AuthUrl (String strReturnUrl)
56                 {
57                         return AuthUrl (strReturnUrl, -1, -1, null, -1, null, -1, -1);
58                 }
59 #endif
60
61                 public string AuthUrl (string strReturnUrl,
62                                        int iTimeWindow,
63                                        bool fForceLogin,
64                                        string strCoBrandedArgs,
65                                        int iLangID,
66                                        string strNameSpace,
67                                        int iKPP,
68                                        bool bUseSecureAuth)
69                 {
70                         return AuthUrl (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
71                 }
72
73                 [MonoTODO]
74                 public string AuthUrl (string strReturnUrl,
75                                        int iTimeWindow,
76                                        int iForceLogin,
77                                        string strCoBrandedArgs,
78                                        int iLangID,
79                                        string strNameSpace,
80                                        int iKPP,
81                                        int iUseSecureAuth)
82                 {
83                         throw new NotImplementedException ();
84                 }
85
86                 public string AuthUrl2 ()
87                 {
88                         return AuthUrl2 (null, -1, -1, null, -1, null, -1, -1);
89                 }
90
91 #if (!NET_1_0)
92                 public string AuthUrl2 (String strReturnUrl)
93                 {
94                         return AuthUrl2 (strReturnUrl, -1, -1, null, -1, null, -1, -1);
95                 }
96 #endif
97
98                 public string AuthUrl2 (string strReturnUrl,
99                                         int iTimeWindow,
100                                         bool fForceLogin,
101                                         string strCoBrandedArgs,
102                                         int iLangID,
103                                         string strNameSpace,
104                                         int iKPP,
105                                         bool bUseSecureAuth)
106                 {
107                         return AuthUrl2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
108                 }
109
110                 [MonoTODO]
111                 public string AuthUrl2 (string strReturnUrl,
112                                         int iTimeWindow,
113                                         int iForceLogin,
114                                         string strCoBrandedArgs,
115                                         int iLangID,
116                                         string strNameSpace,
117                                         int iKPP,
118                                         int iUseSecureAuth)
119                 {
120                         throw new NotImplementedException ();
121                 }
122
123                 [MonoTODO]
124                 public static string Compress (string strData)
125                 {
126                         throw new NotImplementedException ();
127                 }
128
129                 [MonoTODO]
130                 public static bool CryptIsValid ()
131                 {
132                         throw new NotImplementedException ();
133                 }
134
135                 [MonoTODO]
136                 public static int CryptPutHost (string strHost)
137                 {
138                         throw new NotImplementedException ();
139                 }
140
141                 [MonoTODO]
142                 public static int CryptPutSite (string strSite)
143                 {
144                         throw new NotImplementedException ();
145                 }
146
147                 [MonoTODO]
148                 public static string Decompress (string strData)
149                 {
150                         throw new NotImplementedException ();
151                 }
152
153                 [MonoTODO]
154                 public static string Decrypt (string strData)
155                 {
156                         throw new NotImplementedException ();
157                 }
158
159                 [MonoTODO]
160                 public static string Encrypt (string strData)
161                 {
162                         throw new NotImplementedException ();
163                 }
164
165                 [MonoTODO]
166                 public object GetCurrentConfig (string strAttribute)
167                 {
168                         throw new NotImplementedException ();
169                 }
170
171                 [MonoTODO]
172                 public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
173                 {
174                         throw new NotImplementedException ();
175                 }
176
177                 [MonoTODO]
178                 public string GetDomainFromMemberName (string strMemberName)
179                 {
180                         throw new NotImplementedException ();
181                 }
182
183                 public bool GetIsAuthenticated (int iTimeWindow, bool bForceLogin, bool bCheckSecure)
184                 {
185                         return this.GetIsAuthenticated (iTimeWindow, (bForceLogin ? 1 : 0), (bCheckSecure ? 1 : 0));
186                 }
187
188                 [MonoTODO]
189                 public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
190                 {
191                         throw new NotImplementedException ();
192                 }
193
194                 public string GetLoginChallenge ()
195                 {
196                         return GetLoginChallenge (null, -1, -1, null, -1, null, -1, -1, null);
197                 }
198
199 #if (!NET_1_0)
200                 public string GetLoginChallenge (String strReturnUrl)
201                 {
202                         return GetLoginChallenge (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
203                 }
204 #endif
205
206                 [MonoTODO]
207                 public string GetLoginChallenge (string szRetURL,
208                                                  int iTimeWindow,
209                                                  int fForceLogin,
210                                                  string szCOBrandArgs,
211                                                  int iLangID,
212                                                  string strNameSpace,
213                                                  int iKPP,
214                                                  int iUseSecureAuth,
215                                                  object oExtraParams)
216                 {
217                         throw new NotImplementedException ();
218                 }
219
220                 [MonoTODO]
221                 public object GetOption (string strOpt)
222                 {
223                         throw new NotImplementedException ();
224                 }
225
226                 [MonoTODO]
227                 public object GetProfileObject (string strProfileName)
228                 {
229                         throw new NotImplementedException ();
230                 }
231
232                 [MonoTODO]
233                 public bool HasFlag (int iFlagMask)
234                 {
235                         throw new NotImplementedException ();
236                 }
237
238                 [MonoTODO]
239                 public bool HasProfile (string strProfile)
240                 {
241                         throw new NotImplementedException ();
242                 }
243
244                 [MonoTODO]
245                 public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
246                 {
247                         throw new NotImplementedException ();
248                 }
249
250                 public int LoginUser ()
251                 {
252                         return LoginUser (null, -1, -1, null, -1, null, -1, -1, null);
253                 }
254
255 #if (!NET_1_0)
256                 public int LoginUser (String strReturnUrl)
257                 {
258                         return LoginUser (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
259                 }
260 #endif
261
262                 public int LoginUser (string szRetURL,
263                                       int iTimeWindow,
264                                       bool fForceLogin,
265                                       string szCOBrandArgs,
266                                       int iLangID,
267                                       string strNameSpace,
268                                       int iKPP,
269                                       bool fUseSecureAuth,
270                                       object oExtraParams)
271                 {
272                         return LoginUser (szRetURL, iTimeWindow, (fForceLogin ? 1 : 0), szCOBrandArgs, iLangID, strNameSpace, iKPP, (fUseSecureAuth ? 1 : 0), null);
273                 }
274
275                 [MonoTODO]
276                 public int LoginUser (string szRetURL,
277                                       int iTimeWindow,
278                                       int fForceLogin,
279                                       string szCOBrandArgs,
280                                       int iLangID,
281                                       string strNameSpace,
282                                       int iKPP,
283                                       int iUseSecureAuth,
284                                       object oExtraParams)
285                 {
286                         throw new NotImplementedException ();
287                 }
288
289                 public string LogoTag ()
290                 {
291                         return LogoTag (null, -1, -1, null, -1, -1, null, -1, -1);
292                 }
293
294 #if (!NET_1_0)
295                 public string LogoTag (String strReturnUrl)
296                 {
297                         return LogoTag (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
298                 }
299 #endif
300
301                 public string LogoTag (string strReturnUrl,
302                                        int iTimeWindow,
303                                        bool fForceLogin,
304                                        string strCoBrandedArgs,
305                                        int iLangID,
306                                        bool fSecure,
307                                        string strNameSpace,
308                                        int iKPP,
309                                        bool bUseSecureAuth)
310                 {
311                         return LogoTag (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
312                 }
313
314                 [MonoTODO]
315                 public string LogoTag (string strReturnUrl,
316                                        int iTimeWindow,
317                                        int iForceLogin,
318                                        string strCoBrandedArgs,
319                                        int iLangID,
320                                        int iSecure,
321                                        string strNameSpace,
322                                        int iKPP,
323                                        int iUseSecureAuth)
324                 {
325                         throw new NotImplementedException ();
326                 }
327
328                 public string LogoTag2 ()
329                 {
330                         return LogoTag2 (null, -1, -1, null, -1, -1, null, -1, -1);
331                 }
332
333 #if (!NET_1_0)
334                 public string LogoTag2 (String strReturnUrl)
335                 {
336                         return LogoTag2 (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
337                 }
338 #endif
339
340                 public string LogoTag2 (string strReturnUrl,
341                                         int iTimeWindow,
342                                         bool fForceLogin,
343                                         string strCoBrandedArgs,
344                                         int iLangID,
345                                         bool fSecure,
346                                         string strNameSpace,
347                                         int iKPP,
348                                         bool bUseSecureAuth)
349                 {
350                         return LogoTag2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
351                 }
352
353                 [MonoTODO]
354                 public string LogoTag2 (string strReturnUrl,
355                                         int iTimeWindow,
356                                         int iForceLogin,
357                                         string strCoBrandedArgs,
358                                         int iLangID,
359                                         int iSecure,
360                                         string strNameSpace,
361                                         int iKPP,
362                                         int iUseSecureAuth)
363                 {
364                         throw new NotImplementedException ();
365                 }
366
367                 public string LogoutURL ()
368                 {
369                         return LogoutURL (null, null, -1, null, -1);
370                 }
371
372                 [MonoTODO]
373                 public string LogoutURL (string szReturnURL,
374                                          string szCOBrandArgs,
375                                          int iLangID,
376                                          string strDomain,
377                                          int iUseSecureAuth)
378                 {
379                         throw new NotImplementedException ();
380                 }
381
382                 [MonoTODO]
383                 public void SetOption (string strOpt, object vOpt)
384                 {
385                         throw new NotImplementedException ();
386                 }
387
388                 [MonoTODO]
389                 public static void SignOut (string strSignOutDotGifFileName)
390                 {
391                         throw new NotImplementedException ();
392                 }
393
394                 [MonoTODO]
395                 public object Ticket (string strAttribute)
396                 {
397                         throw new NotImplementedException ();
398                 }
399
400                 [MonoTODO]
401                 public string AuthenticationType
402                 {
403                         get {
404                                 throw new NotImplementedException ();
405                         }
406                 }
407
408                 [MonoTODO]
409                 public int Error
410                 {
411                         get {
412                                 throw new NotImplementedException ();
413                         }
414                 }
415
416                 [MonoTODO]
417                 public bool GetFromNetworkServer
418                 {
419                         get {
420                                 throw new NotImplementedException ();
421                         }
422                 }
423
424                 [MonoTODO]
425                 public bool HasSavedPassword
426                 {
427                         get {
428                                 throw new NotImplementedException ();
429                         }
430                 }
431
432                 [MonoTODO]
433                 public bool HasTicket
434                 {
435                         get {
436                                 throw new NotImplementedException ();
437                         }
438                 }
439
440                 [MonoTODO]
441                 public string HexPUID
442                 {
443                         get {
444                                 throw new NotImplementedException ();
445                         }
446                 }
447
448                 [MonoTODO]
449                 public bool IsAuthenticated
450                 {
451                         get {
452                                 throw new NotImplementedException ();
453                         }
454                 }
455
456                 [MonoTODO]
457                 public string this [string strProfileName]
458                 {
459                         get {
460                                 throw new NotImplementedException ();
461                         }
462                 }
463
464                 [MonoTODO]
465                 public string Name
466                 {
467                         get {
468                                 throw new NotImplementedException ();
469                         }
470                 }
471
472                 [MonoTODO]
473                 public int TicketAge
474                 {
475                         get {
476                                 throw new NotImplementedException ();
477                         }
478                 }
479
480                 [MonoTODO]
481                 public int TimeSinceSignIn
482                 {
483                         get {
484                                 throw new NotImplementedException ();
485                         }
486                 }
487         }
488 }
489