Class PortalTokenCredential
- Namespace
- Honua.Sdk.GeoServices.Portal.Models
- Assembly
- Honua.Sdk.GeoServices.dll
Credential returned by POST /sharing/rest/generateToken, preserving Expires in Unix milliseconds.
public sealed record PortalTokenCredential : IEquatable<PortalTokenCredential>
- Inheritance
-
PortalTokenCredential
- Implements
- Inherited Members
Properties
Expires
Token expiration timestamp in Unix milliseconds, matching the server contract.
[JsonPropertyName("expires")]
public required long Expires { get; init; }
Property Value
ExpiresAt
UTC expiration timestamp converted from Expires Unix milliseconds.
[JsonIgnore]
public DateTimeOffset ExpiresAt { get; }
Property Value
Ssl
Whether the issuing server requires TLS transport for the token.
[JsonPropertyName("ssl")]
public bool Ssl { get; init; }
Property Value
Token
Opaque Portal token to present on subsequent sharing and GeoServices requests.
[JsonPropertyName("token")]
public required string Token { get; init; }
Property Value
Methods
ToString()
Returns a redacted summary that omits the raw token value.
public override string ToString()