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