2 // System.Web.Security.PassportIdentity.cs
5 // Gonzalo Paniagua Javier (gonzalo@ximian.com)
6 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
8 // (C) 2002 Ximian, Inc (http://www.ximian.com)
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:
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
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.
33 using System.Security.Principal;
35 namespace System.Web.Security
37 public sealed class PassportIdentity : IIdentity
40 public PassportIdentity ()
42 throw new NotImplementedException ();
49 public string AuthUrl ()
51 return AuthUrl (null, -1, -1, null, -1, null, -1, -1);
55 public string AuthUrl (String strReturnUrl)
57 return AuthUrl (strReturnUrl, -1, -1, null, -1, null, -1, -1);
61 public string AuthUrl (string strReturnUrl,
64 string strCoBrandedArgs,
70 return AuthUrl (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
74 public string AuthUrl (string strReturnUrl,
77 string strCoBrandedArgs,
83 throw new NotImplementedException ();
86 public string AuthUrl2 ()
88 return AuthUrl2 (null, -1, -1, null, -1, null, -1, -1);
92 public string AuthUrl2 (String strReturnUrl)
94 return AuthUrl2 (strReturnUrl, -1, -1, null, -1, null, -1, -1);
98 public string AuthUrl2 (string strReturnUrl,
101 string strCoBrandedArgs,
107 return AuthUrl2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
111 public string AuthUrl2 (string strReturnUrl,
114 string strCoBrandedArgs,
120 throw new NotImplementedException ();
124 public static string Compress (string strData)
126 throw new NotImplementedException ();
130 public static bool CryptIsValid ()
132 throw new NotImplementedException ();
136 public static int CryptPutHost (string strHost)
138 throw new NotImplementedException ();
142 public static int CryptPutSite (string strSite)
144 throw new NotImplementedException ();
148 public static string Decompress (string strData)
150 throw new NotImplementedException ();
154 public static string Decrypt (string strData)
156 throw new NotImplementedException ();
160 public static string Encrypt (string strData)
162 throw new NotImplementedException ();
166 public object GetCurrentConfig (string strAttribute)
168 throw new NotImplementedException ();
172 public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
174 throw new NotImplementedException ();
178 public string GetDomainFromMemberName (string strMemberName)
180 throw new NotImplementedException ();
183 public bool GetIsAuthenticated (int iTimeWindow, bool bForceLogin, bool bCheckSecure)
185 return this.GetIsAuthenticated (iTimeWindow, (bForceLogin ? 1 : 0), (bCheckSecure ? 1 : 0));
189 public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
191 throw new NotImplementedException ();
194 public string GetLoginChallenge ()
196 return GetLoginChallenge (null, -1, -1, null, -1, null, -1, -1, null);
200 public string GetLoginChallenge (String strReturnUrl)
202 return GetLoginChallenge (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
207 public string GetLoginChallenge (string szRetURL,
210 string szCOBrandArgs,
217 throw new NotImplementedException ();
221 public object GetOption (string strOpt)
223 throw new NotImplementedException ();
227 public object GetProfileObject (string strProfileName)
229 throw new NotImplementedException ();
233 public bool HasFlag (int iFlagMask)
235 throw new NotImplementedException ();
239 public bool HasProfile (string strProfile)
241 throw new NotImplementedException ();
245 public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
247 throw new NotImplementedException ();
250 public int LoginUser ()
252 return LoginUser (null, -1, -1, null, -1, null, -1, -1, null);
256 public int LoginUser (String strReturnUrl)
258 return LoginUser (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
262 public int LoginUser (string szRetURL,
265 string szCOBrandArgs,
272 return LoginUser (szRetURL, iTimeWindow, (fForceLogin ? 1 : 0), szCOBrandArgs, iLangID, strNameSpace, iKPP, (fUseSecureAuth ? 1 : 0), null);
276 public int LoginUser (string szRetURL,
279 string szCOBrandArgs,
286 throw new NotImplementedException ();
289 public string LogoTag ()
291 return LogoTag (null, -1, -1, null, -1, -1, null, -1, -1);
295 public string LogoTag (String strReturnUrl)
297 return LogoTag (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
301 public string LogoTag (string strReturnUrl,
304 string strCoBrandedArgs,
311 return LogoTag (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
315 public string LogoTag (string strReturnUrl,
318 string strCoBrandedArgs,
325 throw new NotImplementedException ();
328 public string LogoTag2 ()
330 return LogoTag2 (null, -1, -1, null, -1, -1, null, -1, -1);
334 public string LogoTag2 (String strReturnUrl)
336 return LogoTag2 (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
340 public string LogoTag2 (string strReturnUrl,
343 string strCoBrandedArgs,
350 return LogoTag2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
354 public string LogoTag2 (string strReturnUrl,
357 string strCoBrandedArgs,
364 throw new NotImplementedException ();
367 public string LogoutURL ()
369 return LogoutURL (null, null, -1, null, -1);
373 public string LogoutURL (string szReturnURL,
374 string szCOBrandArgs,
379 throw new NotImplementedException ();
383 public void SetOption (string strOpt, object vOpt)
385 throw new NotImplementedException ();
389 public static void SignOut (string strSignOutDotGifFileName)
391 throw new NotImplementedException ();
395 public object Ticket (string strAttribute)
397 throw new NotImplementedException ();
401 public string AuthenticationType
404 throw new NotImplementedException ();
412 throw new NotImplementedException ();
417 public bool GetFromNetworkServer
420 throw new NotImplementedException ();
425 public bool HasSavedPassword
428 throw new NotImplementedException ();
433 public bool HasTicket
436 throw new NotImplementedException ();
441 public string HexPUID
444 throw new NotImplementedException ();
449 public bool IsAuthenticated
452 throw new NotImplementedException ();
457 public string this [string strProfileName]
460 throw new NotImplementedException ();
468 throw new NotImplementedException ();
476 throw new NotImplementedException ();
481 public int TimeSinceSignIn
484 throw new NotImplementedException ();