Class VerifyTokenResult
- Namespace
- Cloudflare.NET.ApiTokens.Models
- Assembly
- Cloudflare.NET.dll
Result of verifying a token.
public record VerifyTokenResult : IEquatable<VerifyTokenResult>
- Inheritance
-
VerifyTokenResult
- Implements
- Inherited Members
Constructors
VerifyTokenResult(string, TokenStatus, DateTime?, DateTime?)
Result of verifying a token.
public VerifyTokenResult(string Id, TokenStatus Status, DateTime? ExpiresOn = null, DateTime? NotBefore = null)
Parameters
IdstringToken identifier.
StatusTokenStatusToken status.
ExpiresOnDateTime?Token expiration time.
NotBeforeDateTime?Token validity start time.
Properties
ExpiresOn
Token expiration time.
[JsonPropertyName("expires_on")]
public DateTime? ExpiresOn { get; init; }
Property Value
Id
Token identifier.
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
NotBefore
Token validity start time.
[JsonPropertyName("not_before")]
public DateTime? NotBefore { get; init; }
Property Value
Status
Token status.
[JsonPropertyName("status")]
public TokenStatus Status { get; init; }