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
public propertystatic AnonymousPrincipal Gets a IClaimsPrincipal with a ClaimsIdentity that contains zero claims.
public property Identities Gets the ClaimsIdentityCollection associated with this principal.
public property Identity Gets the IIdentity of the current principal.

Public Methods (see also Protected Methods)

  Name Description
public method Copy Returns a new T:Microsoft.IdentityModel.Claims.ClaimsPrincipal object copied from this object
public methodstatic CreateFromHttpContext Overloaded.  
public methodstatic CreateFromIdentities Overloaded.  
public methodstatic CreateFromIdentity Overloaded.  
public methodstatic CreateFromPrincipal Overloaded.  
public method Equals  Overloaded. (Inherited from Object)
public method GetHashCode  (Inherited from Object)
public method GetType  (Inherited from Object)
public method 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.
public methodstatic ReferenceEquals  (Inherited from Object)
public methodstatic SelectPrimaryIdentity This method iterates through the collection of ClaimsIdentities and determines which identity must be used as the primary one.
public method ToString  (Inherited from Object)

Protected Methods

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

See Also

Copyright © 2008 by Microsoft Corporation. All rights reserved.