Dela via


AttestationTokenValidationOptions Class

Definition

Declares the options used for validating an attestation token.

When validating a JSON Web Token, there are a number of options that can be configured. For instance if the returned token is going to be validated by a relying party, there is no need for the client to validate the token.

Similarly, because the expiration time of the token is relative to the clock on the server, it may be necessary to introduce a level of "leeway" when determining if a token is expired or not.

public class AttestationTokenValidationOptions
type AttestationTokenValidationOptions = class
Public Class AttestationTokenValidationOptions
Inheritance
AttestationTokenValidationOptions

Constructors

AttestationTokenValidationOptions()

Initializes a new instance of the AttestationTokenValidationOptions class.

Properties

ExpectedIssuer

Expected Issuer for the token, if present.

TimeValidationSlack

Allowable slack in time validations - used to account for differences between the clock on the client and the clock on the server.

ValidateExpirationTime

Specifies whether or not the validation logic should validate token expiration times, if present.

ValidateIssuer

Specifies whether or not the validation logic should validate the Issuer of the token, if present.

ValidateNotBeforeTime

Specifies whether or not the validation logic should validate token NotBefore time, if present.

ValidateToken

Returns whether or not to validate the attestation token.

Methods

Clone()

Create a deep copy of the current attestation token.

Events

TokenValidated

Raised when an attestation token should be validated.

Applies to