Table of Contents

Method TryParse

Namespace
MailFathom.Infrastructure.DataEncryption
Assembly
MailFathom.Infrastructure.dll

TryParse(string?, out DataEncryptionPurpose)

Parses a stored or configured identity.

public static bool TryParse(string? identity, out DataEncryptionPurpose purpose)

Parameters

identity string

The identity to match, compared exactly because it is authenticated material rather than operator input.

purpose DataEncryptionPurpose

The parsed purpose when the identity is supported; otherwise the unspecified default.

Returns

bool

true when the identity names a supported purpose; otherwise false.

Remarks

An identity nothing declares is unknown rather than new, so no value is ever reconstructed from one.