Skip to content

AlgorithmRefusedByProfileException Class

ProfiledJwtIssuer refused to issue a token because the security profile in force does not admit its signature or key management algorithm.

C#
public sealed class AlgorithmRefusedByProfileException : System.InvalidOperationException

Inheritance System.Object → System.Exception → System.SystemException → System.InvalidOperationException → AlgorithmRefusedByProfileException

Remarks

Carries what was refused, so a path that chose the algorithm from a key a party published can answer that party's request instead of failing as the server.

Constructors

AlgorithmRefusedByProfileException(string, string, JsonWebKey) Constructor

Creates the refusal.

C#
public AlgorithmRefusedByProfileException(string message, string? algorithm, Abblix.Jwt.JsonWebKey? encryptionKey);

Parameters

message System.String

What was refused, for the log.

algorithm System.String

The algorithm the profile does not admit.

encryptionKey JsonWebKey

The key the token would have been encrypted to, where the refused algorithm is its key management algorithm; null where it is the signature algorithm.

Properties

AlgorithmRefusedByProfileException.Algorithm Property

The algorithm the profile does not admit, null where the token named none.

C#
public string? Algorithm { get; }

Property Value

System.String

AlgorithmRefusedByProfileException.EncryptionKey Property

The key the token would have been encrypted to, where the refused algorithm is its key management algorithm.

C#
public Abblix.Jwt.JsonWebKey? EncryptionKey { get; }

Property Value

JsonWebKey