Fix for running against RabbitMQ 2.2
[mono.git] / mcs / class / System.Web / System.Web.Security / PassportIdentity.cs
index d51e0b99af57b67210d17469554ec3308d6bd7fd..3191c265676b165ac31d7d78329e85508c68a11c 100644 (file)
@@ -6,7 +6,7 @@
 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
 //
 // (C) 2002 Ximian, Inc (http://www.ximian.com)
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2005-2010 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
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Security.Permissions;
 using System.Security.Principal;
 
 namespace System.Web.Security {
 
+       [MonoNotSupported ("")]
+       [MonoTODO("Not implemented")]
+       // CAS - no InheritanceDemand here as the class is sealed
+       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+#if NET_4_0
+       [Obsolete ("This type is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")]
+#endif
 #if NET_2_0
        public sealed class PassportIdentity : IIdentity, IDisposable {
 #else
        public sealed class PassportIdentity : IIdentity {
 #endif
-               [MonoTODO]
+               [SecurityPermission (SecurityAction.Demand, UnmanagedCode = true)]
                public PassportIdentity ()
                {
-                       throw new NotImplementedException ();
                }
 
                ~PassportIdentity ()
@@ -71,7 +78,7 @@ namespace System.Web.Security {
                        return AuthUrl (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string AuthUrl (string strReturnUrl,
                                       int iTimeWindow,
                                       int iForceLogin,
@@ -108,7 +115,7 @@ namespace System.Web.Security {
                        return AuthUrl2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string AuthUrl2 (string strReturnUrl,
                                        int iTimeWindow,
                                        int iForceLogin,
@@ -121,61 +128,61 @@ namespace System.Web.Security {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public static string Compress (string strData)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public static bool CryptIsValid ()
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public static int CryptPutHost (string strHost)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public static int CryptPutSite (string strSite)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public static string Decompress (string strData)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public static string Decrypt (string strData)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public static string Encrypt (string strData)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public object GetCurrentConfig (string strAttribute)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string GetDomainFromMemberName (string strMemberName)
                {
                        throw new NotImplementedException ();
@@ -186,7 +193,7 @@ namespace System.Web.Security {
                        return this.GetIsAuthenticated (iTimeWindow, (bForceLogin ? 1 : 0), (bCheckSecure ? 1 : 0));
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
                {
                        throw new NotImplementedException ();
@@ -204,7 +211,7 @@ namespace System.Web.Security {
                }
 #endif
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string GetLoginChallenge (string szRetURL,
                                                 int iTimeWindow,
                                                 int fForceLogin,
@@ -218,31 +225,31 @@ namespace System.Web.Security {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public object GetOption (string strOpt)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public object GetProfileObject (string strProfileName)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public bool HasFlag (int iFlagMask)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public bool HasProfile (string strProfile)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
                {
                        throw new NotImplementedException ();
@@ -273,7 +280,7 @@ namespace System.Web.Security {
                        return LoginUser (szRetURL, iTimeWindow, (fForceLogin ? 1 : 0), szCOBrandArgs, iLangID, strNameSpace, iKPP, (fUseSecureAuth ? 1 : 0), null);
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public int LoginUser (string szRetURL,
                                      int iTimeWindow,
                                      int fForceLogin,
@@ -312,7 +319,7 @@ namespace System.Web.Security {
                        return LogoTag (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string LogoTag (string strReturnUrl,
                                       int iTimeWindow,
                                       int iForceLogin,
@@ -351,7 +358,7 @@ namespace System.Web.Security {
                        return LogoTag2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string LogoTag2 (string strReturnUrl,
                                        int iTimeWindow,
                                        int iForceLogin,
@@ -370,7 +377,7 @@ namespace System.Web.Security {
                        return LogoutURL (null, null, -1, null, -1);
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string LogoutURL (string szReturnURL,
                                         string szCOBrandArgs,
                                         int iLangID,
@@ -380,25 +387,25 @@ namespace System.Web.Security {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public void SetOption (string strOpt, object vOpt)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public static void SignOut (string strSignOutDotGifFileName)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public object Ticket (string strAttribute)
                {
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string AuthenticationType
                {
                        get {
@@ -406,7 +413,7 @@ namespace System.Web.Security {
                        }
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public int Error
                {
                        get {
@@ -414,7 +421,7 @@ namespace System.Web.Security {
                        }
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public bool GetFromNetworkServer
                {
                        get {
@@ -422,7 +429,7 @@ namespace System.Web.Security {
                        }
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public bool HasSavedPassword
                {
                        get {
@@ -430,7 +437,7 @@ namespace System.Web.Security {
                        }
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public bool HasTicket
                {
                        get {
@@ -438,7 +445,7 @@ namespace System.Web.Security {
                        }
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string HexPUID
                {
                        get {
@@ -446,7 +453,7 @@ namespace System.Web.Security {
                        }
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public bool IsAuthenticated
                {
                        get {
@@ -454,7 +461,7 @@ namespace System.Web.Security {
                        }
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string this [string strProfileName]
                {
                        get {
@@ -462,7 +469,7 @@ namespace System.Web.Security {
                        }
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public string Name
                {
                        get {
@@ -470,7 +477,7 @@ namespace System.Web.Security {
                        }
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public int TicketAge
                {
                        get {
@@ -478,7 +485,7 @@ namespace System.Web.Security {
                        }
                }
 
-               [MonoTODO]
+               [MonoTODO("Not implemented")]
                public int TimeSinceSignIn
                {
                        get {