Show / Hide Table of Contents

Class SpecifiedPrincipalAccessor

Represents a principal accessor that uses the supplied System.Security.Claims.ClaimsPrincipal.

Inheritance
Object
SpecifiedPrincipalAccessor
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM.IdentityModel
Assembly: IRM.dll
Syntax
public class SpecifiedPrincipalAccessor : ICurrentPrincipalAccessor

Constructors

SpecifiedPrincipalAccessor(ClaimsPrincipal)

Creates a new instance of SpecifiedPrincipalAccessor.

Declaration
public SpecifiedPrincipalAccessor(ClaimsPrincipal principal)
Parameters
System.Security.Claims.ClaimsPrincipal principal

The System.Security.Claims.ClaimsPrincipal to use.

Properties

CurrentPrincipal

Gets the current user.

Declaration
public ClaimsPrincipal CurrentPrincipal { get; }
Property Value
System.Security.Claims.ClaimsPrincipal

Implements
ICurrentPrincipalAccessor.CurrentPrincipal

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX