Class ValidationParameters
- Namespace
- JWT
- Assembly
- Coherence.JWT.dll
Contains a set of parameters that are used by a JwtValidator when validating a token.
public class ValidationParameters
- Inheritance
-
ValidationParameters
- Extension Methods
Constructors
ValidationParameters()
public ValidationParameters()
Remarks
By default, all peroperties are set to true
to ensure validation is enabled.
Use Default if you'd like to set all properties set to true
or use None if you'd like to set all properties set to false.
Properties
Default
Returns a ValidationParameters with all properties set to true.
public static ValidationParameters Default { get; }
Property Value
None
Returns a ValidationParameters with all properties set to false.
public static ValidationParameters None { get; }
Property Value
TimeMargin
Gets or sets the time margin in seconds for exp and nbf during token validation.
public int TimeMargin { get; set; }
Property Value
ValidateExpirationTime
Gets or sets whether to validate the validity of the token's expiration time.
public bool ValidateExpirationTime { get; set; }
Property Value
ValidateIssuedTime
Gets or sets whether to validate the validity of the token's issued time.
public bool ValidateIssuedTime { get; set; }
Property Value
ValidateSignature
Gets or sets whether to validate the validity of the token's signature.
public bool ValidateSignature { get; set; }