Struct josekit::jwt::JwtContext[][src]

pub struct JwtContext { /* fields omitted */ }

Implementations

Test a critical header claim name is acceptable.

Arguments
  • name - a critical header claim name

Add a acceptable critical header claim name

Arguments
  • name - a acceptable critical header claim name

Remove a acceptable critical header claim name

Arguments
  • name - a acceptable critical header claim name

Return the string repsentation of the JWT with a “none” algorithm.

Arguments
  • payload - The payload data.
  • header - The JWT heaser claims.

Return the string repsentation of the JWT with the siginig algorithm.

Arguments
  • payload - The payload data.
  • header - The JWS heaser claims.
  • signer - a signer object.

Return the string repsentation of the JWT with the encrypting algorithm.

Arguments
  • payload - The payload data.
  • header - The JWE heaser claims.
  • encrypter - a encrypter object.

Return the Jose header decoded from JWT.

Arguments
  • input - a JWT string representation.

Return the JWT object decoded with the “none” algorithm.

Arguments
  • input - a JWT string representation.

Return the JWT object decoded by the selected verifier.

Arguments
  • verifier - a verifier of the signing algorithm.
  • input - a JWT string representation.

Return the JWT object decoded with a selected verifying algorithm.

Arguments
  • input - a JWT string representation.
  • selector - a function for selecting the verifying algorithm.

Return the JWT object decoded by using a JWK set.

Arguments
  • input - a JWT string representation.
  • jwk_set - a JWK set.
  • selector - a function for selecting the verifying algorithm.

Return the JWT object decoded by the selected decrypter.

Arguments
  • input - a JWT string representation.
  • decrypter - a decrypter of the decrypting algorithm.

Return the JWT object decoded with a selected decrypting algorithm.

Arguments
  • input - a JWT string representation.
  • decrypter_selector - a function for selecting the decrypting algorithm.

Return the JWT object decoded by using a JWK set.

Arguments
  • input - a JWT string representation.
  • jwk_set - a JWK set.
  • selector - a function for selecting the decrypting algorithm.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.