using System;
using System.Collections.Generic;
using System.Security.Principal;
using System.Text;

namespace BusinessCommon
{
    public class MyIdentity : IIdentity
    {
        private AuthenticationTicket mTicket;

        public MyIdentity(AuthenticationTicket ticket)
        {
            mTicket = ticket;
        }

        public string AuthenticationType
        {
            get { return "MyAuthentication"; }
        }

        public bool IsAuthenticated
        {
            get { return true; }
        }

        public string Name
        {
            get { return mTicket.Name; }
        }

        public AuthenticationTicket Ticket
        {
            get { return mTicket; }
        }
    }
}
