Name
IIdentity
Synopsis
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( )
Get Programming .NET Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.