Struct josekit::jws::JwsContext[][src]

pub struct JwsContext { /* 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 a representation of the data that is formatted by compact serialization.

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

Return a representation of the data that is formatted by compact serialization.

Arguments
  • payload - The payload data.
  • header - The JWS heaser claims.
  • selector - a function for selecting the signing algorithm.

Return a representation of the data that is formatted by flattened json serialization.

Arguments
  • protected - The JWS protected header claims.
  • header - The JWS unprotected header claims.
  • payload - The payload data.
  • signers - The JWS signer.

Return a representation of the data that is formatted by flattened json serialization.

Arguments
  • payload - The payload data.
  • headers - The JWS headers.
  • selector - a function for selecting the signing algorithm.

Return a representation of the data that is formatted by flattened json serialization.

Arguments
  • payload - The payload data.
  • header - The JWS protected and unprotected header claims.
  • signer - The JWS signer.

Return a representation of the data that is formatted by flatted json serialization.

Arguments
  • payload - The payload data.
  • header - The JWS protected and unprotected header claims.
  • selector - a function for selecting the signing algorithm.

Deserialize the input that is formatted by compact serialization.

Arguments
  • input - The input data.
  • header - The decoded JWS header claims.
  • verifier - The JWS verifier.

Deserialize the input that is formatted by compact serialization.

Arguments
  • input - The input data.
  • header - The decoded JWS header claims.
  • selector - a function for selecting the verifying algorithm.

Deserialize the input that is formatted by json serialization.

Arguments
  • input - The input data.
  • header - The decoded JWS header claims.
  • verifier - The JWS verifier.

Deserialize the input that is formatted by json serialization.

Arguments
  • input - The input data.
  • header - The decoded JWS header claims.
  • selector - a function for selecting the verifying 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.