0 out of 1 rated this helpful - Rate this topic

ClaimsPrincipal Class

Windows Identity Foundation


Represents a claims-based principal object.


Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)
  Dim instance As ClaimsPrincipal
[SerializableAttribute] 
public class ClaimsPrincipal : IClaimsPrincipal, IPrincipal
/** @attribute SerializableAttribute() */ 
public class ClaimsPrincipal implements IClaimsPrincipal, IPrincipal
SerializableAttribute 
public class ClaimsPrincipal implements IClaimsPrincipal, IPrincipal

In the claims model, multiple users or claims-based identities can be party to a single action. The ClaimsPrincipal class exposes a collection of identities through the Identities property. Each of these identities implements the IClaimsIdentity interface and you can access the claims associated with the current caller through them. In the common case, there will be a single issuer and a single token and the identities collection will only have one element. However, it is possible in advanced scenarios for a relying party to ask (via policy) for more than one security token, potentially from different issuers. For more information about using claims-based principal objects in Windows® Identity Foundation (WIF), see the IClaimsPrincipal class.


System.Object
  Microsoft.IdentityModel.Claims.ClaimsPrincipal
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows 7, Windows Server 2008 R2, Windows Vista SP2, Windows Server 2008 SP2, Windows Server 2003 SP2 (32-bit or 64-bit)
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ