SignatureKeyValidationError Class

Definition

Represents a validation error when the SecurityKey that signed the SecurityTokenis not valid. If available, the invalid signing key is stored in InvalidSigningKey.

public class SignatureKeyValidationError : Microsoft.IdentityModel.Tokens.Experimental.ValidationError
type SignatureKeyValidationError = class
    inherit ValidationError
Public Class SignatureKeyValidationError
Inherits ValidationError
Inheritance
SignatureKeyValidationError

Constructors

Name Description
SignatureKeyValidationError(MessageDetail, ValidationFailureType, StackFrame, SecurityKey, Exception)

Initializes a new instance of the SignatureKeyValidationError class.

SignatureKeyValidationError(MessageDetail, ValidationFailureType, StackFrame, SecurityKey)

Initializes a new instance of the SignatureKeyValidationError class.

Properties

Name Description
Exception

Gets or sets the exception associated with the ValidationError.

(Inherited from ValidationError)
FailureType

Gets the type of validation failure that occurred.

(Inherited from ValidationError)
InnerException

Gets the inner exception that occurred.

(Inherited from ValidationError)
InvalidSigningKey

The signing key that was found invalid.

Message

Gets the message that contains details of the error.

(Inherited from ValidationError)
StackFrames

Gets the stack frames where the exception occurred.

(Inherited from ValidationError)

Methods

Name Description
AddCurrentStackFrame(String, Int32, Int32)

Adds the current stack frame to the list of stack frames and returns the updated object. If there is no cache entry for the given file path and line number, a new stack frame is created and added to the cache.

(Inherited from ValidationError)
AddStackFrame(StackFrame)

Adds a stack frame to the list of stack frames and returns the updated object.

(Inherited from ValidationError)
GetException()

Creates an instance of an SecurityTokenInvalidSigningKeyException.

Applies to