SignatureValidationError Class

Definition

Represents a validation error when the SecurityToken signature is not valid.

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

Constructors

Name Description
SignatureValidationError(MessageDetail, ValidationFailureType, StackFrame, Exception)

Initializes a new instance of the SignatureValidationError class.

SignatureValidationError(MessageDetail, ValidationFailureType, StackFrame)

Initializes a new instance of the SignatureValidationError 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)
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()

SecurityTokenInvalidSignatureException or SecurityTokenSignatureKeyNotFoundException.

Applies to