LifetimeValidationError Class

Definition

Represents an error that occurs when a token's lifetime cannot be validated. If available, the not before and expires values are stored in NotBefore and Expires.

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

Constructors

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

Initializes a new instance of the LifetimeValidationError class.

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

Initializes a new instance of the LifetimeValidationError class.

Properties

Name Description
Exception

Gets or sets the exception associated with the ValidationError.

(Inherited from ValidationError)
Expires

The date at which the token expires.

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

The date from which the token is valid.

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 SecurityTokenInvalidLifetimeException.

Applies to