PassportIdentity.cs 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. //
  2. // System.Web.Security.PassportIdentity.cs
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. // Andreas Nahr ([email protected])
  7. //
  8. // (C) 2002 Ximian, Inc (http://www.ximian.com)
  9. //
  10. using System;
  11. using System.Security.Principal;
  12. namespace System.Web.Security
  13. {
  14. public sealed class PassportIdentity : IIdentity
  15. {
  16. [MonoTODO]
  17. public PassportIdentity ()
  18. {
  19. throw new NotImplementedException ();
  20. }
  21. ~PassportIdentity ()
  22. {
  23. }
  24. public string AuthUrl ()
  25. {
  26. return AuthUrl (null, -1, -1, null, -1, null, -1, -1);
  27. }
  28. #if (!NET_1_0)
  29. public string AuthUrl (String strReturnUrl)
  30. {
  31. return AuthUrl (strReturnUrl, -1, -1, null, -1, null, -1, -1);
  32. }
  33. #endif
  34. public string AuthUrl (string strReturnUrl,
  35. int iTimeWindow,
  36. bool fForceLogin,
  37. string strCoBrandedArgs,
  38. int iLangID,
  39. string strNameSpace,
  40. int iKPP,
  41. bool bUseSecureAuth)
  42. {
  43. return AuthUrl (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
  44. }
  45. [MonoTODO]
  46. public string AuthUrl (string strReturnUrl,
  47. int iTimeWindow,
  48. int iForceLogin,
  49. string strCoBrandedArgs,
  50. int iLangID,
  51. string strNameSpace,
  52. int iKPP,
  53. int iUseSecureAuth)
  54. {
  55. throw new NotImplementedException ();
  56. }
  57. public string AuthUrl2 ()
  58. {
  59. return AuthUrl2 (null, -1, -1, null, -1, null, -1, -1);
  60. }
  61. #if (!NET_1_0)
  62. public string AuthUrl2 (String strReturnUrl)
  63. {
  64. return AuthUrl2 (strReturnUrl, -1, -1, null, -1, null, -1, -1);
  65. }
  66. #endif
  67. public string AuthUrl2 (string strReturnUrl,
  68. int iTimeWindow,
  69. bool fForceLogin,
  70. string strCoBrandedArgs,
  71. int iLangID,
  72. string strNameSpace,
  73. int iKPP,
  74. bool bUseSecureAuth)
  75. {
  76. return AuthUrl2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
  77. }
  78. [MonoTODO]
  79. public string AuthUrl2 (string strReturnUrl,
  80. int iTimeWindow,
  81. int iForceLogin,
  82. string strCoBrandedArgs,
  83. int iLangID,
  84. string strNameSpace,
  85. int iKPP,
  86. int iUseSecureAuth)
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. [MonoTODO]
  91. public static string Compress (string strData)
  92. {
  93. throw new NotImplementedException ();
  94. }
  95. [MonoTODO]
  96. public static bool CryptIsValid ()
  97. {
  98. throw new NotImplementedException ();
  99. }
  100. [MonoTODO]
  101. public static int CryptPutHost (string strHost)
  102. {
  103. throw new NotImplementedException ();
  104. }
  105. [MonoTODO]
  106. public static int CryptPutSite (string strSite)
  107. {
  108. throw new NotImplementedException ();
  109. }
  110. [MonoTODO]
  111. public static string Decompress (string strData)
  112. {
  113. throw new NotImplementedException ();
  114. }
  115. [MonoTODO]
  116. public static string Decrypt (string strData)
  117. {
  118. throw new NotImplementedException ();
  119. }
  120. [MonoTODO]
  121. public static string Encrypt (string strData)
  122. {
  123. throw new NotImplementedException ();
  124. }
  125. [MonoTODO]
  126. public object GetCurrentConfig (string strAttribute)
  127. {
  128. throw new NotImplementedException ();
  129. }
  130. [MonoTODO]
  131. public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
  132. {
  133. throw new NotImplementedException ();
  134. }
  135. [MonoTODO]
  136. public string GetDomainFromMemberName (string strMemberName)
  137. {
  138. throw new NotImplementedException ();
  139. }
  140. public bool GetIsAuthenticated (int iTimeWindow, bool bForceLogin, bool bCheckSecure)
  141. {
  142. return this.GetIsAuthenticated (iTimeWindow, (bForceLogin ? 1 : 0), (bCheckSecure ? 1 : 0));
  143. }
  144. [MonoTODO]
  145. public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
  146. {
  147. throw new NotImplementedException ();
  148. }
  149. public string GetLoginChallenge ()
  150. {
  151. return GetLoginChallenge (null, -1, -1, null, -1, null, -1, -1, null);
  152. }
  153. #if (!NET_1_0)
  154. public string GetLoginChallenge (String strReturnUrl)
  155. {
  156. return GetLoginChallenge (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
  157. }
  158. #endif
  159. [MonoTODO]
  160. public string GetLoginChallenge (string szRetURL,
  161. int iTimeWindow,
  162. int fForceLogin,
  163. string szCOBrandArgs,
  164. int iLangID,
  165. string strNameSpace,
  166. int iKPP,
  167. int iUseSecureAuth,
  168. object oExtraParams)
  169. {
  170. throw new NotImplementedException ();
  171. }
  172. [MonoTODO]
  173. public object GetOption (string strOpt)
  174. {
  175. throw new NotImplementedException ();
  176. }
  177. [MonoTODO]
  178. public object GetProfileObject (string strProfileName)
  179. {
  180. throw new NotImplementedException ();
  181. }
  182. [MonoTODO]
  183. public bool HasFlag (int iFlagMask)
  184. {
  185. throw new NotImplementedException ();
  186. }
  187. [MonoTODO]
  188. public bool HasProfile (string strProfile)
  189. {
  190. throw new NotImplementedException ();
  191. }
  192. [MonoTODO]
  193. public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
  194. {
  195. throw new NotImplementedException ();
  196. }
  197. public int LoginUser ()
  198. {
  199. return LoginUser (null, -1, -1, null, -1, null, -1, -1, null);
  200. }
  201. #if (!NET_1_0)
  202. public int LoginUser (String strReturnUrl)
  203. {
  204. return LoginUser (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
  205. }
  206. #endif
  207. public int LoginUser (string szRetURL,
  208. int iTimeWindow,
  209. bool fForceLogin,
  210. string szCOBrandArgs,
  211. int iLangID,
  212. string strNameSpace,
  213. int iKPP,
  214. bool fUseSecureAuth,
  215. object oExtraParams)
  216. {
  217. return LoginUser (szRetURL, iTimeWindow, (fForceLogin ? 1 : 0), szCOBrandArgs, iLangID, strNameSpace, iKPP, (fUseSecureAuth ? 1 : 0), null);
  218. }
  219. [MonoTODO]
  220. public int LoginUser (string szRetURL,
  221. int iTimeWindow,
  222. int fForceLogin,
  223. string szCOBrandArgs,
  224. int iLangID,
  225. string strNameSpace,
  226. int iKPP,
  227. int iUseSecureAuth,
  228. object oExtraParams)
  229. {
  230. throw new NotImplementedException ();
  231. }
  232. public string LogoTag ()
  233. {
  234. return LogoTag (null, -1, -1, null, -1, -1, null, -1, -1);
  235. }
  236. #if (!NET_1_0)
  237. public string LogoTag (String strReturnUrl)
  238. {
  239. return LogoTag (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
  240. }
  241. #endif
  242. public string LogoTag (string strReturnUrl,
  243. int iTimeWindow,
  244. bool fForceLogin,
  245. string strCoBrandedArgs,
  246. int iLangID,
  247. bool fSecure,
  248. string strNameSpace,
  249. int iKPP,
  250. bool bUseSecureAuth)
  251. {
  252. return LogoTag (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
  253. }
  254. [MonoTODO]
  255. public string LogoTag (string strReturnUrl,
  256. int iTimeWindow,
  257. int iForceLogin,
  258. string strCoBrandedArgs,
  259. int iLangID,
  260. int iSecure,
  261. string strNameSpace,
  262. int iKPP,
  263. int iUseSecureAuth)
  264. {
  265. throw new NotImplementedException ();
  266. }
  267. public string LogoTag2 ()
  268. {
  269. return LogoTag2 (null, -1, -1, null, -1, -1, null, -1, -1);
  270. }
  271. #if (!NET_1_0)
  272. public string LogoTag2 (String strReturnUrl)
  273. {
  274. return LogoTag2 (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
  275. }
  276. #endif
  277. public string LogoTag2 (string strReturnUrl,
  278. int iTimeWindow,
  279. bool fForceLogin,
  280. string strCoBrandedArgs,
  281. int iLangID,
  282. bool fSecure,
  283. string strNameSpace,
  284. int iKPP,
  285. bool bUseSecureAuth)
  286. {
  287. return LogoTag2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
  288. }
  289. [MonoTODO]
  290. public string LogoTag2 (string strReturnUrl,
  291. int iTimeWindow,
  292. int iForceLogin,
  293. string strCoBrandedArgs,
  294. int iLangID,
  295. int iSecure,
  296. string strNameSpace,
  297. int iKPP,
  298. int iUseSecureAuth)
  299. {
  300. throw new NotImplementedException ();
  301. }
  302. public string LogoutURL ()
  303. {
  304. return LogoutURL (null, null, -1, null, -1);
  305. }
  306. [MonoTODO]
  307. public string LogoutURL (string szReturnURL,
  308. string szCOBrandArgs,
  309. int iLangID,
  310. string strDomain,
  311. int iUseSecureAuth)
  312. {
  313. throw new NotImplementedException ();
  314. }
  315. [MonoTODO]
  316. public void SetOption (string strOpt, object vOpt)
  317. {
  318. throw new NotImplementedException ();
  319. }
  320. [MonoTODO]
  321. public static void SignOut (string strSignOutDotGifFileName)
  322. {
  323. throw new NotImplementedException ();
  324. }
  325. [MonoTODO]
  326. public object Ticket (string strAttribute)
  327. {
  328. throw new NotImplementedException ();
  329. }
  330. [MonoTODO]
  331. public string AuthenticationType
  332. {
  333. get {
  334. throw new NotImplementedException ();
  335. }
  336. }
  337. [MonoTODO]
  338. public int Error
  339. {
  340. get {
  341. throw new NotImplementedException ();
  342. }
  343. }
  344. [MonoTODO]
  345. public bool GetFromNetworkServer
  346. {
  347. get {
  348. throw new NotImplementedException ();
  349. }
  350. }
  351. [MonoTODO]
  352. public bool HasSavedPassword
  353. {
  354. get {
  355. throw new NotImplementedException ();
  356. }
  357. }
  358. [MonoTODO]
  359. public bool HasTicket
  360. {
  361. get {
  362. throw new NotImplementedException ();
  363. }
  364. }
  365. [MonoTODO]
  366. public string HexPUID
  367. {
  368. get {
  369. throw new NotImplementedException ();
  370. }
  371. }
  372. [MonoTODO]
  373. public bool IsAuthenticated
  374. {
  375. get {
  376. throw new NotImplementedException ();
  377. }
  378. }
  379. [MonoTODO]
  380. public string this [string strProfileName]
  381. {
  382. get {
  383. throw new NotImplementedException ();
  384. }
  385. }
  386. [MonoTODO]
  387. public string Name
  388. {
  389. get {
  390. throw new NotImplementedException ();
  391. }
  392. }
  393. [MonoTODO]
  394. public int TicketAge
  395. {
  396. get {
  397. throw new NotImplementedException ();
  398. }
  399. }
  400. [MonoTODO]
  401. public int TimeSinceSignIn
  402. {
  403. get {
  404. throw new NotImplementedException ();
  405. }
  406. }
  407. }
  408. }