Class UserGrantSnapshot
- Namespace
- Excalibur.A3.Authorization
- Assembly
- Excalibur.A3.Abstractions.dll
Owned grant snapshot paired with its authoritative user revision.
public sealed class UserGrantSnapshot
- Inheritance
-
UserGrantSnapshot
- Inherited Members
Constructors
UserGrantSnapshot(string, long, IEnumerable<Grant>)
Initializes a snapshot, taking an owned copy of the grant collection.
public UserGrantSnapshot(string userId, long revision, IEnumerable<Grant> grants)
Parameters
userIdstringExact subject identifier.
revisionlongRevision from the same committed state as the grants.
grantsIEnumerable<Grant>Subject's grants.
Properties
Grants
Gets an owned read-only collection of immutable grants.
public IReadOnlyList<Grant> Grants { get; }
Property Value
Revision
Gets the authoritative revision paired with these grants.
public long Revision { get; }
Property Value
UserId
Gets the exact subject identifier.
public string UserId { get; }