ДИПЛОМНА РАБОТА - Св. Климент Охридски
ДИПЛОМНА РАБОТА - Св. Климент Охридски
ДИПЛОМНА РАБОТА - Св. Климент Охридски
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Софийски Университет "<strong>Св</strong>. <strong>Климент</strong> <strong>Охридски</strong>" , Факултет по Математика и ИнформатикаМагистърска програма : З И К С Мpublic bool IsAuthenticated{get{return this.isAuth;}}public string Name{get{return this.name;}}public string AuthenticationType{get{return this.authType;}}#endregionprivate int AuthUserName(string name){XmlTextReader xmlReader = new XmlTextReader("Users.xml");xmlReader.WhitespaceHandling = WhitespaceHandling.None;while (xmlReader.Read()){if (xmlReader["name"] == name)return Int32.Parse(xmlReader["id"]);}throw newSystem.Security.SecurityException(String.Format("Потребител {0} не енамерен в базата данни.", name));}}}using System;using System.Security.Principal;using System.Xml;namespace CustSecurity{public class CustPrincipal : IPrincipal{private CustomIdentity indentity;private string role;public CustomPrincipal(CustomIdentity identity){this.indentity = identity;this.role = this.GetUserRole();}public IIdentity Identity{- 141 -Учебна година : 2007/2008; Летен семестър; Ася Огнянова Григорова; FN 22167