Table of Contents

Method Create

Namespace
MailFathom.Infrastructure.ObjectStorage
Assembly
MailFathom.Infrastructure.dll

Create(ResolvedSecret, ResolvedSecret)

Builds a credential from resolved material, taking ownership of both buffers.

public static ObjectStorageCredential Create(ResolvedSecret accessKeyIdMaterial, ResolvedSecret secretAccessKeyMaterial)

Parameters

accessKeyIdMaterial ResolvedSecret

The material the access key identifier was read from.

secretAccessKeyMaterial ResolvedSecret

The material the secret was read from.

Returns

ObjectStorageCredential

The credential.

Remarks

Both buffers are released when this credential is, including when a blank half refuses the construction.

Exceptions

ArgumentNullException

Thrown when either argument is null.

ArgumentException

Thrown when either half is blank, which is a credential the endpoint could not admit and must never be sent as one.