Table of Contents

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

userId string

Exact subject identifier.

revision long

Revision from the same committed state as the grants.

grants IEnumerable<Grant>

Subject's grants.

Properties

Grants

Gets an owned read-only collection of immutable grants.

public IReadOnlyList<Grant> Grants { get; }

Property Value

IReadOnlyList<Grant>

Revision

Gets the authoritative revision paired with these grants.

public long Revision { get; }

Property Value

long

UserId

Gets the exact subject identifier.

public string UserId { get; }

Property Value

string