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
accessKeyIdMaterialResolvedSecretThe material the access key identifier was read from.
secretAccessKeyMaterialResolvedSecretThe 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.