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
signingKeyAsymmetricAlgorithmThe 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
signingKeyis null.