Provides methods that retrieve information about the current caller.
The following tables list the members exposed by the ClaimsPrincipal type.
Public Constructors
Name | Description | |
---|---|---|
ClaimsPrincipal | Overloaded. |
Public Properties
Name | Description | |
---|---|---|
AnonymousPrincipal | Gets a IClaimsPrincipal with a ClaimsIdentity that contains zero claims. | |
Identities | Gets the ClaimsIdentityCollection associated with this principal. | |
Identity | Gets the IIdentity of the current principal. |
Public Methods (see also Protected Methods)
Name | Description | |
---|---|---|
Copy | Returns a new T:Microsoft.IdentityModel.Claims.ClaimsPrincipal object copied from this object | |
CreateFromHttpContext | Overloaded. | |
CreateFromIdentities | Overloaded. | |
CreateFromIdentity | Overloaded. | |
CreateFromPrincipal | Overloaded. | |
Equals | Overloaded. (Inherited from Object) | |
GetHashCode | (Inherited from Object) | |
GetType | (Inherited from Object) | |
IsInRole | This class interprets IsInRole as the reflection of whether this principal possesses a claim specified by a configured list. The claim value has no bearing on the result. | |
ReferenceEquals | (Inherited from Object) | |
SelectPrimaryIdentity | This method iterates through the collection of ClaimsIdentities and determines which identity must be used as the primary one. | |
ToString | (Inherited from Object) |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object) | |
MemberwiseClone | (Inherited from Object) |
See Also
Copyright © 2008 by Microsoft Corporation. All rights reserved.