| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499 |
- //
- // System.Web.Security.PassportIdentity.cs
- //
- // Authors:
- // Gonzalo Paniagua Javier ([email protected])
- // Andreas Nahr ([email protected])
- //
- // (C) 2002 Ximian, Inc (http://www.ximian.com)
- // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
- //
- // Permission is hereby granted, free of charge, to any person obtaining
- // a copy of this software and associated documentation files (the
- // "Software"), to deal in the Software without restriction, including
- // without limitation the rights to use, copy, modify, merge, publish,
- // distribute, sublicense, and/or sell copies of the Software, and to
- // permit persons to whom the Software is furnished to do so, subject to
- // the following conditions:
- //
- // The above copyright notice and this permission notice shall be
- // included in all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
- // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- //
- using System.Security.Permissions;
- using System.Security.Principal;
- namespace System.Web.Security {
- [MonoTODO]
- // CAS - no InheritanceDemand here as the class is sealed
- [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
- #if NET_2_0
- public sealed class PassportIdentity : IIdentity, IDisposable {
- #else
- public sealed class PassportIdentity : IIdentity {
- #endif
- [SecurityPermission (SecurityAction.Demand, UnmanagedCode = true)]
- public PassportIdentity ()
- {
- }
- ~PassportIdentity ()
- {
- }
- public string AuthUrl ()
- {
- return AuthUrl (null, -1, -1, null, -1, null, -1, -1);
- }
- #if (!NET_1_0)
- public string AuthUrl (String strReturnUrl)
- {
- return AuthUrl (strReturnUrl, -1, -1, null, -1, null, -1, -1);
- }
- #endif
- public string AuthUrl (string strReturnUrl,
- int iTimeWindow,
- bool fForceLogin,
- string strCoBrandedArgs,
- int iLangID,
- string strNameSpace,
- int iKPP,
- bool bUseSecureAuth)
- {
- return AuthUrl (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
- }
- [MonoTODO]
- public string AuthUrl (string strReturnUrl,
- int iTimeWindow,
- int iForceLogin,
- string strCoBrandedArgs,
- int iLangID,
- string strNameSpace,
- int iKPP,
- int iUseSecureAuth)
- {
- throw new NotImplementedException ();
- }
- public string AuthUrl2 ()
- {
- return AuthUrl2 (null, -1, -1, null, -1, null, -1, -1);
- }
- #if (!NET_1_0)
- public string AuthUrl2 (String strReturnUrl)
- {
- return AuthUrl2 (strReturnUrl, -1, -1, null, -1, null, -1, -1);
- }
- #endif
- public string AuthUrl2 (string strReturnUrl,
- int iTimeWindow,
- bool fForceLogin,
- string strCoBrandedArgs,
- int iLangID,
- string strNameSpace,
- int iKPP,
- bool bUseSecureAuth)
- {
- return AuthUrl2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
- }
- [MonoTODO]
- public string AuthUrl2 (string strReturnUrl,
- int iTimeWindow,
- int iForceLogin,
- string strCoBrandedArgs,
- int iLangID,
- string strNameSpace,
- int iKPP,
- int iUseSecureAuth)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public static string Compress (string strData)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public static bool CryptIsValid ()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public static int CryptPutHost (string strHost)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public static int CryptPutSite (string strSite)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public static string Decompress (string strData)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public static string Decrypt (string strData)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public static string Encrypt (string strData)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public object GetCurrentConfig (string strAttribute)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public string GetDomainFromMemberName (string strMemberName)
- {
- throw new NotImplementedException ();
- }
- public bool GetIsAuthenticated (int iTimeWindow, bool bForceLogin, bool bCheckSecure)
- {
- return this.GetIsAuthenticated (iTimeWindow, (bForceLogin ? 1 : 0), (bCheckSecure ? 1 : 0));
- }
- [MonoTODO]
- public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
- {
- throw new NotImplementedException ();
- }
- public string GetLoginChallenge ()
- {
- return GetLoginChallenge (null, -1, -1, null, -1, null, -1, -1, null);
- }
- #if (!NET_1_0)
- public string GetLoginChallenge (String strReturnUrl)
- {
- return GetLoginChallenge (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
- }
- #endif
- [MonoTODO]
- public string GetLoginChallenge (string szRetURL,
- int iTimeWindow,
- int fForceLogin,
- string szCOBrandArgs,
- int iLangID,
- string strNameSpace,
- int iKPP,
- int iUseSecureAuth,
- object oExtraParams)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public object GetOption (string strOpt)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public object GetProfileObject (string strProfileName)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public bool HasFlag (int iFlagMask)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public bool HasProfile (string strProfile)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
- {
- throw new NotImplementedException ();
- }
- public int LoginUser ()
- {
- return LoginUser (null, -1, -1, null, -1, null, -1, -1, null);
- }
- #if (!NET_1_0)
- public int LoginUser (String strReturnUrl)
- {
- return LoginUser (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
- }
- #endif
- public int LoginUser (string szRetURL,
- int iTimeWindow,
- bool fForceLogin,
- string szCOBrandArgs,
- int iLangID,
- string strNameSpace,
- int iKPP,
- bool fUseSecureAuth,
- object oExtraParams)
- {
- return LoginUser (szRetURL, iTimeWindow, (fForceLogin ? 1 : 0), szCOBrandArgs, iLangID, strNameSpace, iKPP, (fUseSecureAuth ? 1 : 0), null);
- }
- [MonoTODO]
- public int LoginUser (string szRetURL,
- int iTimeWindow,
- int fForceLogin,
- string szCOBrandArgs,
- int iLangID,
- string strNameSpace,
- int iKPP,
- int iUseSecureAuth,
- object oExtraParams)
- {
- throw new NotImplementedException ();
- }
- public string LogoTag ()
- {
- return LogoTag (null, -1, -1, null, -1, -1, null, -1, -1);
- }
- #if (!NET_1_0)
- public string LogoTag (String strReturnUrl)
- {
- return LogoTag (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
- }
- #endif
- public string LogoTag (string strReturnUrl,
- int iTimeWindow,
- bool fForceLogin,
- string strCoBrandedArgs,
- int iLangID,
- bool fSecure,
- string strNameSpace,
- int iKPP,
- bool bUseSecureAuth)
- {
- return LogoTag (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
- }
- [MonoTODO]
- public string LogoTag (string strReturnUrl,
- int iTimeWindow,
- int iForceLogin,
- string strCoBrandedArgs,
- int iLangID,
- int iSecure,
- string strNameSpace,
- int iKPP,
- int iUseSecureAuth)
- {
- throw new NotImplementedException ();
- }
- public string LogoTag2 ()
- {
- return LogoTag2 (null, -1, -1, null, -1, -1, null, -1, -1);
- }
- #if (!NET_1_0)
- public string LogoTag2 (String strReturnUrl)
- {
- return LogoTag2 (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
- }
- #endif
- public string LogoTag2 (string strReturnUrl,
- int iTimeWindow,
- bool fForceLogin,
- string strCoBrandedArgs,
- int iLangID,
- bool fSecure,
- string strNameSpace,
- int iKPP,
- bool bUseSecureAuth)
- {
- return LogoTag2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
- }
- [MonoTODO]
- public string LogoTag2 (string strReturnUrl,
- int iTimeWindow,
- int iForceLogin,
- string strCoBrandedArgs,
- int iLangID,
- int iSecure,
- string strNameSpace,
- int iKPP,
- int iUseSecureAuth)
- {
- throw new NotImplementedException ();
- }
- public string LogoutURL ()
- {
- return LogoutURL (null, null, -1, null, -1);
- }
- [MonoTODO]
- public string LogoutURL (string szReturnURL,
- string szCOBrandArgs,
- int iLangID,
- string strDomain,
- int iUseSecureAuth)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public void SetOption (string strOpt, object vOpt)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public static void SignOut (string strSignOutDotGifFileName)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public object Ticket (string strAttribute)
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public string AuthenticationType
- {
- get {
- throw new NotImplementedException ();
- }
- }
- [MonoTODO]
- public int Error
- {
- get {
- throw new NotImplementedException ();
- }
- }
- [MonoTODO]
- public bool GetFromNetworkServer
- {
- get {
- throw new NotImplementedException ();
- }
- }
- [MonoTODO]
- public bool HasSavedPassword
- {
- get {
- throw new NotImplementedException ();
- }
- }
- [MonoTODO]
- public bool HasTicket
- {
- get {
- throw new NotImplementedException ();
- }
- }
- [MonoTODO]
- public string HexPUID
- {
- get {
- throw new NotImplementedException ();
- }
- }
- [MonoTODO]
- public bool IsAuthenticated
- {
- get {
- throw new NotImplementedException ();
- }
- }
- [MonoTODO]
- public string this [string strProfileName]
- {
- get {
- throw new NotImplementedException ();
- }
- }
- [MonoTODO]
- public string Name
- {
- get {
- throw new NotImplementedException ();
- }
- }
- [MonoTODO]
- public int TicketAge
- {
- get {
- throw new NotImplementedException ();
- }
- }
- [MonoTODO]
- public int TimeSinceSignIn
- {
- get {
- throw new NotImplementedException ();
- }
- }
- #if NET_2_0
- void IDisposable.Dispose ()
- {
- }
- #endif
- }
- }
|