Table of Contents

Method FromText

Namespace
MailFathom.Infrastructure.Secrets.Resolution
Assembly
MailFathom.Infrastructure.dll

FromText(string)

Encodes text material as UTF-8 into an owned pinned buffer.

public static ResolvedSecret FromText(string material)

Parameters

material string

The material.

Returns

ResolvedSecret

The owned secret.

Remarks

The source string itself cannot be erased, so this overload is reachable only where the platform already handed the value over as a string.

Exceptions

ArgumentNullException

Thrown when material is null.