IIdentity

IIdentity

System.Security.Principal (mscorlib.dll)interface
public interface IIdentity { // Public Instance Properties    public string AuthenticationType{get; }    public bool IsAuthenticated{get; }    public string Name{get; } }

The IIdentity interface defines the functionality that all identity classes must implement. An identity object represents the user on whose behalf code is running. IIdentity defines three read-only properties. Name is the most commonly used property and returns the name of the user. IsAuthenticated returns a Boolean value indicating whether the current identity has been authenticated. AuthenticationType returns a System.String that identifies the authentication mechanism used to authenticate the user.

Implemented By

GenericIdentity, WindowsIdentity

Returned By

GenericPrincipal.Identity, IPrincipal.Identity, WindowsPrincipal.Identity

Passed To

GenericPrincipal.GenericPrincipal( )



Programming. NET Security
Programming .Net Security
ISBN: 0596004427
EAN: 2147483647
Year: 2005
Pages: 346

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net