// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-using System;
using System.IO;
+using System.Security.Permissions;
namespace System.Web.Security
{
+ // CAS - no InheritanceDemand here as the class is sealed
+ [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+ // attributes
[Serializable]
public sealed class FormsAuthenticationTicket
{
internal static FormsAuthenticationTicket FromByteArray (byte [] bytes)
{
+ if (bytes == null)
+ throw new ArgumentNullException ("bytes");
+
MemoryStream ms = new MemoryStream (bytes);
BinaryReader reader = new BinaryReader (ms);
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket ();
return ticket;
}
- private FormsAuthenticationTicket ()
+ FormsAuthenticationTicket ()
{
}