Freigeben über


TokenReplayValidationError Class

Definition

Represents a validation error when a SecurityToken replay is detected. If available, the expiration time of the SecurityToken that failed the validation is included.

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

Constructors

Name Description
TokenReplayValidationError(MessageDetail, ValidationFailureType, StackFrame, Nullable<DateTime>, Exception)

Initializes a new instance of the TokenReplayValidationError class.

TokenReplayValidationError(MessageDetail, ValidationFailureType, StackFrame, Nullable<DateTime>)

Initializes a new instance of the TokenReplayValidationError class.

Properties

Name Description
Exception

Gets or sets the exception associated with the ValidationError.

(Inherited from ValidationError)
ExpirationTime

The expiration time of the token that failed the validation.

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()

Creates an instance of an SecurityTokenReplayDetectedException.

Applies to