Share via


TokenValidationParameters Class

Contains a set of parameters that are used by SecurityTokenHandler when validating a SecurityToken.

Inheritance Hierarchy

System.Object
  System.IdentityModel.Tokens.TokenValidationParameters

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)

Syntax

'Declaration
Public Class TokenValidationParameters
public class TokenValidationParameters
public ref class TokenValidationParameters
type TokenValidationParameters =  class end
public class TokenValidationParameters

The TokenValidationParameters type exposes the following members.

Constructors

  Name Description
Public method TokenValidationParameters Creates a new TokenValidationParameters with AudienceUriMode = BearerKeyOnly and SaveBootstrapContext = false.

Top

Properties

  Name Description
Public property AllowedAudience Gets or sets an audience that is considered valid.
Public property AllowedAudiences Gets or sets a collection of audiences that are considered valid.
Public property AudienceUriMode Gets or sets the AudienceUriMode to use when validating audience values.
Public property SaveBootstrapContext Gets or sets a value indicating whether JwtSecurityToken should be attached to BootstrapContext during validation.
Public property SigningToken Gets or sets a SecurityToken to use when validating signatures.
Public property SigningTokens Gets or sets a collection of SecurityToken to use when validating signatures.
Public property ValidateIssuer Gets or sets a value indicating whether the Issuer should be validated.
Public property ValidIssuer Gets or sets an issuer that is considered valid.
Public property ValidIssuers Gets or sets a collection of issuers that is considered valid.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.IdentityModel.Tokens Namespace