Struct josekit::jwt::JwtPayloadValidator[][src]

pub struct JwtPayloadValidator { /* fields omitted */ }
Expand description

Represents JWT payload validator.

Implementations

Return a new JwtPayloadValidator.

Set a base time for time related claims (exp, nbf) validation.

Arguments
  • base_time - a min time

Return the base time for time related claims (exp, nbf) validation.

Set a minimum time for issued at payload claim (iat) validation.

Arguments
  • min_issued_time - a minimum time at which the JWT was issued.

Return the minimum time for issued at payload claim (iat).

Set a maximum time for issued at payload claim (iat) validation.

Arguments
  • max_issued_time - a maximum time at which the JWT was issued.

Return the maximum time for issued at payload claim (iat).

Set a value for issuer payload claim (iss) validation.

Arguments
  • value - a issuer

Return the value for issuer payload claim (iss) validation.

Set a value for subject payload claim (sub) validation.

Arguments
  • value - a subject

Return the value for subject payload claim (sub) validation.

Set a value for audience payload claim (aud) validation.

Arguments
  • value - a audience

Return the value for audience payload claim (aud) validation.

Set a value for JWT ID payload claim (jti) validation.

Arguments
  • value - A JWT ID

Return the value for JWT ID payload claim (jti) validation.

Set a value for payload claim of a specified key.

Arguments
  • key - a key name of payload claim
  • value - a typed value of payload claim

Return the value for payload claim of a specified key.

Arguments
  • key - a key name of payload claim

Validate a decoded JWT payload.

Arguments
  • payload - a decoded JWT payload.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.