AlgorithmRefusedByProfileException Class
ProfiledJwtIssuer refused to issue a token because the security profile in force does not admit its signature or key management algorithm.
public sealed class AlgorithmRefusedByProfileException : System.InvalidOperationExceptionInheritance 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.
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.
public string? Algorithm { get; }Property Value
AlgorithmRefusedByProfileException.EncryptionKey Property
The key the token would have been encrypted to, where the refused algorithm is its key management algorithm.
public Abblix.Jwt.JsonWebKey? EncryptionKey { get; }