Constructor HeldClientSession
- Namespace
- MailFathom.Application.Access.Sessions
- Assembly
- MailFathom.Application.dll
HeldClientSession(ClientSessionGrant, ReadOnlyMemory<byte>, DateTimeOffset, UserEndpointAccess)
One session the deployment is holding, as the row naming it reports it.
public HeldClientSession(ClientSessionGrant Grant, ReadOnlyMemory<byte> SecretDigest, DateTimeOffset ExpiresAt, UserEndpointAccess EndpointAccess)
Parameters
GrantClientSessionGrantWhat the session admits, which the exchange established and a renewal carries forward.
SecretDigestReadOnlyMemory<byte>The digest of the secret half, which the presented secret is compared against in constant time.
ExpiresAtDateTimeOffsetWhen presenting the token stops working, in UTC.
EndpointAccessUserEndpointAccessWhich endpoints the session's user may be served on now, read from the user row in the statement that read the session rather than stored on it, so a switch turned off reaches a session minted before it.
Remarks
The digest crosses the port rather than the comparison, for the reason the signal ticket's does: the store answers what it holds, and whether a presented value proves it is decided by the type that also decides what a malformed value is. A row read out of the database, a dump, or a backup is therefore not a session.