Class AccessToken
- Namespace
- VpnHood.Core.Server.Access.Managers.FileAccessManagers.Dtos
- Assembly
- VpnHood.Core.Server.Access.Managers.FileAccessManagers.dll
Represents an access key as the file access manager keeps it: its ID, secret and limits.
public class AccessToken
- Inheritance
-
AccessToken
- Inherited Members
Properties
AdRequirement
Gets or sets the ad the access key asks for: the answers of Session_Get(ulong, IPEndPoint, IPAddress?, CancellationToken) and Session_GetAll(CancellationToken) whose error code is Ok carry it, while the answer that makes a session requires none, and the answers to a session's usage and close carry none.
public AdRequirement AdRequirement { get; set; }
Property Value
ExpirationTime
Gets or sets when the access key expires, in UTC, or null for never.
public DateTime? ExpirationTime { get; set; }
Property Value
IssuedAt
Gets or sets when the access key was made, in UTC.
public DateTime IssuedAt { get; set; }
Property Value
MaxClientCount
Gets or sets the most devices that may use the access key at once, or 0 for no limit.
public int MaxClientCount { get; set; }
Property Value
MaxSpeedMbps
Gets or sets the speed limits each way, in megabits a second, or null.
public Traffic? MaxSpeedMbps { get; set; }
Property Value
MaxTraffic
Gets or sets the access key's traffic quota, in bytes, or 0 for none.
public long MaxTraffic { get; set; }
Property Value
Name
Gets or sets the access key's name, or null.
public string? Name { get; set; }
Property Value
Secret
Gets or sets the access key's secret, which a client proves it holds.
public required byte[] Secret { get; set; }
Property Value
- byte[]
TokenId
Gets or sets the access key's ID.
public required string TokenId { get; set; }