Class PrincipalAccessorDecorator
A ICurrentPrincipalAccessor where the user can be changed (temporarly or for the lifetime of the instance).
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 PrincipalAccessorDecorator : ICurrentPrincipalAccessor
Constructors
PrincipalAccessorDecorator(Decorator<ICurrentPrincipalAccessor>)
Creates a new instance of PrincipalAccessorDecorator.
Declaration
public PrincipalAccessorDecorator(Decorator<ICurrentPrincipalAccessor> decorator)
Parameters
Decorator<ICurrentPrincipalAccessor>
decorator
The ordinary ICurrentPrincipalAccessor. |
Exceptions
System.ArgumentNullException
|
Properties
CurrentPrincipal
Gets the current user.
Declaration
public ClaimsPrincipal CurrentPrincipal { get; }
Property Value
System.Security.Claims.ClaimsPrincipal
|
Implements
Methods
SetCurrentPrincipal(ClaimsPrincipal)
Sets the current principal to be used for CurrentPrincipal.
Declaration
public void SetCurrentPrincipal(ClaimsPrincipal principal)
Parameters
System.Security.Claims.ClaimsPrincipal
principal
|