Click or drag to resize

IClaimsPrincipal Interface

Represents a claims principal abstraction for PCL

Namespace:  SanteDB.Core.Security.Claims
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 2.2.1
Syntax
public interface IClaimsPrincipal : IPrincipal

The IClaimsPrincipal type exposes the following members.

Properties
  NameDescription
Public propertyClaims
Gets the claims
Public propertyIdentities
Gets all the identities
Public propertyIdentity
Gets the identity of the current principal.
(Inherited from IPrincipal.)
Top
Methods
  NameDescription
Public methodAddIdentity
Add an identity
Public methodFindAll
Find all claims
Public methodFindFirst
Find all claims
Public methodHasClaim
Determine if the principal has a claim
Public methodIsInRole
Determines whether the current principal belongs to the specified role.
(Inherited from IPrincipal.)
Public methodTryGetClaimValue
Find all claims
Top
Extension Methods
  NameDescription
Public Extension MethodGetClaimValue
Get the specified claim
(Defined by SanteDBClaimTypes.)
Public Extension MethodGetGrantedPolicies
Gets the granted policies from the specified claims principal
(Defined by SecurityExtensions.)
Top
Remarks
This interface is used to abstract needed fields for allowing PCL profile7 assemblies to access data about generated claims principals
See Also