Table of Contents

Class GrantData

Namespace
Excalibur.A3.Authorization.Grants
Assembly
Excalibur.A3.Core.dll

Represents data for a grant as retrieved from the database.

public sealed record GrantData : IEquatable<GrantData>
Inheritance
GrantData
Implements
Inherited Members

Properties

ExpiresOn

Gets or initializes the expiration date of the grant, if applicable.

public DateTimeOffset? ExpiresOn { get; init; }

Property Value

DateTimeOffset?

The expiration date, or null if the grant does not expire.

FullName

Gets or initializes the full name of the user or entity associated with the grant.

public required string FullName { get; init; }

Property Value

string

The full name of the user.

GrantType

Gets or initializes the type of the grant.

public required string GrantType { get; init; }

Property Value

string

The type of the grant.

GrantedBy

Gets or initializes the name of the entity granting the permission.

public required string GrantedBy { get; init; }

Property Value

string

The name of the entity granting the permission.

GrantedOn

Gets or initializes the date and time the grant was issued.

public DateTimeOffset? GrantedOn { get; init; }

Property Value

DateTimeOffset?

The date and time the grant was issued, or null if not available.

Qualifier

Gets or initializes the qualifier of the grant.

public required string Qualifier { get; init; }

Property Value

string

The qualifier of the grant.

TenantId

Gets or initializes the tenant ID associated with the grant.

public required string TenantId { get; init; }

Property Value

string

The tenant ID.

UserId

Gets or initializes the user ID associated with the grant.

public required string UserId { get; init; }

Property Value

string

The user ID.