Click or drag to resize

ITokenPrincipal Interface

A principal which was authenticated with token based credentials (so it is a Principal - but a session as well)

Namespace: SanteDB.Core.Security.Principal
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public interface ITokenPrincipal : IClaimsPrincipal, 
	IPrincipal

The ITokenPrincipal type exposes the following members.

Properties
 NameDescription
Public propertyAccessToken Get the tokens with name and values
Public propertyClaims Gets the claims
(Inherited from IClaimsPrincipal)
Public propertyExpiresAt Get the expiration time
Public propertyIdentities Gets all the identities
(Inherited from IClaimsPrincipal)
Public propertyIdentityGets the identity of the current principal.
(Inherited from IPrincipal)
Public propertyIdentityToken Get the identity token structure
Public propertyRefreshToken Gets the refresh token
Public propertyTokenType Get the token types
Top
Methods
 NameDescription
Public methodAddIdentity Add an identity
(Inherited from IClaimsPrincipal)
Public methodFindAll Find all claims
(Inherited from IClaimsPrincipal)
Public methodFindFirst Find all claims
(Inherited from IClaimsPrincipal)
Public methodHasClaim Determine if the principal has a claim
(Inherited from IClaimsPrincipal)
Public methodIsInRoleDetermines whether the current principal belongs to the specified role.
(Inherited from IPrincipal)
Public methodTryGetClaimValue Find all claims
(Inherited from IClaimsPrincipal)
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
See Also