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 | |
---|---|---|
TokenValidationParameters | Creates a new TokenValidationParameters with AudienceUriMode = BearerKeyOnly and SaveBootstrapContext = false. |
Top
Properties
Name | Description | |
---|---|---|
AllowedAudience | Gets or sets an audience that is considered valid. | |
AllowedAudiences | Gets or sets a collection of audiences that are considered valid. | |
AudienceUriMode | Gets or sets the AudienceUriMode to use when validating audience values. | |
SaveBootstrapContext | Gets or sets a value indicating whether JwtSecurityToken should be attached to BootstrapContext during validation. | |
SigningToken | Gets or sets a SecurityToken to use when validating signatures. | |
SigningTokens | Gets or sets a collection of SecurityToken to use when validating signatures. | |
ValidateIssuer | Gets or sets a value indicating whether the Issuer should be validated. | |
ValidIssuer | Gets or sets an issuer that is considered valid. | |
ValidIssuers | Gets or sets a collection of issuers that is considered valid. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.