Compartilhar via


SecurityTokenUnableToValidateException Class

Definition

Caution

This expception is no longer being thrown by Microsoft.IdentityModel and will be removed in the next major version see: https://aka.ms/SecurityTokenUnableToValidateException

This exception is thrown when a security token contained a key identifier but the key was not found by the runtime and when validation errors exist over the security token. This exception is not intended to be used as a signal to refresh keys.

[System.Obsolete("This expception is no longer being thrown by Microsoft.IdentityModel and will be removed in the next major version see: https://aka.ms/SecurityTokenUnableToValidateException", false)]
[System.Serializable]
public class SecurityTokenUnableToValidateException : Microsoft.IdentityModel.Tokens.SecurityTokenInvalidSignatureException
[<System.Obsolete("This expception is no longer being thrown by Microsoft.IdentityModel and will be removed in the next major version see: https://aka.ms/SecurityTokenUnableToValidateException", false)>]
[<System.Serializable>]
type SecurityTokenUnableToValidateException = class
    inherit SecurityTokenInvalidSignatureException
Public Class SecurityTokenUnableToValidateException
Inherits SecurityTokenInvalidSignatureException
Inheritance
Attributes

Remarks

This exception type is now considered obsolete and will be removed in the next major version (7.0.0).

Constructors

SecurityTokenUnableToValidateException()

Initializes a new instance of the SecurityTokenSignatureKeyNotFoundException class.

SecurityTokenUnableToValidateException(SerializationInfo, StreamingContext)

Initializes a new instance of the SecurityTokenSignatureKeyNotFoundException class.

SecurityTokenUnableToValidateException(String, Exception)

Initializes a new instance of the SecurityTokenSignatureKeyNotFoundException class.

SecurityTokenUnableToValidateException(String)

Initializes a new instance of the SecurityTokenSignatureKeyNotFoundException class.

SecurityTokenUnableToValidateException(ValidationFailure, String)

Initializes a new instance of the SecurityTokenSignatureKeyNotFoundException class.

Properties

Source

Gets or sets the source of the exception.

(Inherited from SecurityTokenException)
StackTrace

Gets the stack trace that is captured when the exception is created.

(Inherited from SecurityTokenException)
ValidationFailure

Indicates the type of the validation failure.

Methods

GetObjectData(SerializationInfo, StreamingContext)

When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.

Applies to