namespace System.Security.Principal { public interface IIdentity { // the entity identity String Name { get; } // the authentication type String Type { get; } // is this an authenticated identity Bool IsAuthenticated {get; } } }
Notes:
namespace System.Security.Principal { public interface IPrincipal { // the associated identity object IIdentity Identity { get; } // dteremine if the principal represents a given role bool IsInRole (String Role); } }