Table of Contents

Method ReadPrivateKey

Namespace
MailFathom.Common.ClientAssertions
Assembly
MailFathom.Common.dll

ReadPrivateKey(ReadOnlySpan<char>, out ClientAssertionKeyFault)

Reads the private half a client signs an assertion with.

public static AsymmetricAlgorithm? ReadPrivateKey(ReadOnlySpan<char> material, out ClientAssertionKeyFault fault)

Parameters

material ReadOnlySpan<char>

The operator's PEM.

fault ClientAssertionKeyFault

Why the material is unusable, when it is.

Returns

AsymmetricAlgorithm

The key, which the caller owns and disposes, or null when the material carries none.