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)
9 // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
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:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
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.
31 using System.Security.Permissions;
32 using System.Security.Principal;
34 namespace System.Web.Security {
37 // CAS - no InheritanceDemand here as the class is sealed
38 [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
40 public sealed class PassportIdentity : IIdentity, IDisposable {
42 public sealed class PassportIdentity : IIdentity {
44 [SecurityPermission (SecurityAction.Demand, UnmanagedCode = true)]
45 public PassportIdentity ()
53 public string AuthUrl ()
55 return AuthUrl (null, -1, -1, null, -1, null, -1, -1);
59 public string AuthUrl (String strReturnUrl)
61 return AuthUrl (strReturnUrl, -1, -1, null, -1, null, -1, -1);
65 public string AuthUrl (string strReturnUrl,
68 string strCoBrandedArgs,
74 return AuthUrl (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
78 public string AuthUrl (string strReturnUrl,
81 string strCoBrandedArgs,
87 throw new NotImplementedException ();
90 public string AuthUrl2 ()
92 return AuthUrl2 (null, -1, -1, null, -1, null, -1, -1);
96 public string AuthUrl2 (String strReturnUrl)
98 return AuthUrl2 (strReturnUrl, -1, -1, null, -1, null, -1, -1);
102 public string AuthUrl2 (string strReturnUrl,
105 string strCoBrandedArgs,
111 return AuthUrl2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
115 public string AuthUrl2 (string strReturnUrl,
118 string strCoBrandedArgs,
124 throw new NotImplementedException ();
128 public static string Compress (string strData)
130 throw new NotImplementedException ();
134 public static bool CryptIsValid ()
136 throw new NotImplementedException ();
140 public static int CryptPutHost (string strHost)
142 throw new NotImplementedException ();
146 public static int CryptPutSite (string strSite)
148 throw new NotImplementedException ();
152 public static string Decompress (string strData)
154 throw new NotImplementedException ();
158 public static string Decrypt (string strData)
160 throw new NotImplementedException ();
164 public static string Encrypt (string strData)
166 throw new NotImplementedException ();
170 public object GetCurrentConfig (string strAttribute)
172 throw new NotImplementedException ();
176 public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
178 throw new NotImplementedException ();
182 public string GetDomainFromMemberName (string strMemberName)
184 throw new NotImplementedException ();
187 public bool GetIsAuthenticated (int iTimeWindow, bool bForceLogin, bool bCheckSecure)
189 return this.GetIsAuthenticated (iTimeWindow, (bForceLogin ? 1 : 0), (bCheckSecure ? 1 : 0));
193 public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
195 throw new NotImplementedException ();
198 public string GetLoginChallenge ()
200 return GetLoginChallenge (null, -1, -1, null, -1, null, -1, -1, null);
204 public string GetLoginChallenge (String strReturnUrl)
206 return GetLoginChallenge (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
211 public string GetLoginChallenge (string szRetURL,
214 string szCOBrandArgs,
221 throw new NotImplementedException ();
225 public object GetOption (string strOpt)
227 throw new NotImplementedException ();
231 public object GetProfileObject (string strProfileName)
233 throw new NotImplementedException ();
237 public bool HasFlag (int iFlagMask)
239 throw new NotImplementedException ();
243 public bool HasProfile (string strProfile)
245 throw new NotImplementedException ();
249 public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
251 throw new NotImplementedException ();
254 public int LoginUser ()
256 return LoginUser (null, -1, -1, null, -1, null, -1, -1, null);
260 public int LoginUser (String strReturnUrl)
262 return LoginUser (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
266 public int LoginUser (string szRetURL,
269 string szCOBrandArgs,
276 return LoginUser (szRetURL, iTimeWindow, (fForceLogin ? 1 : 0), szCOBrandArgs, iLangID, strNameSpace, iKPP, (fUseSecureAuth ? 1 : 0), null);
280 public int LoginUser (string szRetURL,
283 string szCOBrandArgs,
290 throw new NotImplementedException ();
293 public string LogoTag ()
295 return LogoTag (null, -1, -1, null, -1, -1, null, -1, -1);
299 public string LogoTag (String strReturnUrl)
301 return LogoTag (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
305 public string LogoTag (string strReturnUrl,
308 string strCoBrandedArgs,
315 return LogoTag (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
319 public string LogoTag (string strReturnUrl,
322 string strCoBrandedArgs,
329 throw new NotImplementedException ();
332 public string LogoTag2 ()
334 return LogoTag2 (null, -1, -1, null, -1, -1, null, -1, -1);
338 public string LogoTag2 (String strReturnUrl)
340 return LogoTag2 (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
344 public string LogoTag2 (string strReturnUrl,
347 string strCoBrandedArgs,
354 return LogoTag2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
358 public string LogoTag2 (string strReturnUrl,
361 string strCoBrandedArgs,
368 throw new NotImplementedException ();
371 public string LogoutURL ()
373 return LogoutURL (null, null, -1, null, -1);
377 public string LogoutURL (string szReturnURL,
378 string szCOBrandArgs,
383 throw new NotImplementedException ();
387 public void SetOption (string strOpt, object vOpt)
389 throw new NotImplementedException ();
393 public static void SignOut (string strSignOutDotGifFileName)
395 throw new NotImplementedException ();
399 public object Ticket (string strAttribute)
401 throw new NotImplementedException ();
405 public string AuthenticationType
408 throw new NotImplementedException ();
416 throw new NotImplementedException ();
421 public bool GetFromNetworkServer
424 throw new NotImplementedException ();
429 public bool HasSavedPassword
432 throw new NotImplementedException ();
437 public bool HasTicket
440 throw new NotImplementedException ();
445 public string HexPUID
448 throw new NotImplementedException ();
453 public bool IsAuthenticated
456 throw new NotImplementedException ();
461 public string this [string strProfileName]
464 throw new NotImplementedException ();
472 throw new NotImplementedException ();
480 throw new NotImplementedException ();
485 public int TimeSinceSignIn
488 throw new NotImplementedException ();
493 void IDisposable.Dispose ()