Table of Contents

Method AlgorithmFor

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

AlgorithmFor(AsymmetricAlgorithm)

Names the algorithm one key signs with.

public static string? AlgorithmFor(AsymmetricAlgorithm signingKey)

Parameters

signingKey AsymmetricAlgorithm

The key an assertion is signed with, or verified against.

Returns

string

The JSON Web Algorithm name, or null when the key is of a kind no permitted algorithm covers.

Exceptions

ArgumentNullException

Thrown when signingKey is null.