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