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
materialReadOnlySpan<byte>The token, which is left untouched.
Returns
- MailboxRefreshToken
The owned token.
Exceptions
- ArgumentException
Thrown when
materialis empty, which no authorization server issues and which would seal to a value nothing could use.