Table of Contents

Method Create

Namespace
MailFathom.Domain.Accounts
Assembly
MailFathom.Domain.dll

Create(ReadOnlySpan<byte>)

Takes ownership of a copy of the token's bytes.

public static MailboxRefreshToken Create(ReadOnlySpan<byte> material)

Parameters

material ReadOnlySpan<byte>

The token, which is left untouched.

Returns

MailboxRefreshToken

The owned token.

Exceptions

ArgumentException

Thrown when material is empty, which no authorization server issues and which would seal to a value nothing could use.