Class SpecifiedPrincipalAccessor
Represents a principal accessor that uses the supplied System.Security.Claims.ClaimsPrincipal.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
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
|