pub struct JWKDecodingKeySet { /* private fields */ }

Implementations

Fetch a key by key id (KID)

Number of keys in keystore

Manually add a key to the keystore

Verify a JWT token. If the token is valid, it is returned.

A token is considered valid if:

  • Is well formed
  • Has a kid field that matches a public signature `kid
  • Signature matches public key
  • It is not expired
  • The nbf is not set to before now

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

Should always be Self

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)

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.