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
identitystringThe identity to match, compared exactly because it is authenticated material rather than operator input.
purposeDataEncryptionPurposeThe parsed purpose when the identity is supported; otherwise the unspecified default.
Returns
Remarks
An identity nothing declares is unknown rather than new, so no value is ever reconstructed from one.