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: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
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 propertyIdentityGets 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 methodIsInRoleDetermines 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 MethodGetFirstClaimValue Gets the first value of a matching claim type from an IClaimsPrincipal searching in the order specified in the parameters.
(Defined by SecurityExtensions)
Public Extension MethodGetGrantedPolicies Gets the granted policies from the specified claims principal
(Defined by SecurityExtensions)
Public Extension MethodIsElevatedPrincipal True if elevated principal
(Defined by ExtensionMethods)
Public Extension MethodIsNonInteractivePrincipal True if the principal is not an interactive (user) principal
(Defined by ExtensionMethods)
Top
Remarks
This interface is used to abstract needed fields for allowing PCL profile7 assemblies to access data about generated claims principals
See Also