Struct josekit::jwe::JweContext[][src]

pub struct JweContext { /* 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

Get a compression algorithm for zip header claim value.

Arguments
  • name - a zip header claim name

Add a compression algorithm for zip header claim name.

Arguments
  • compression - a compression algorithm

Remove a compression algorithm for zip header claim name.

Arguments
  • name - a zip header claim name

Get a content encryption algorithm for enc header claim value.

Arguments
  • name - a content encryption header claim name

Add a content encryption algorithm for enc header claim name.

Arguments
  • content_encryption - a content encryption algorithm

Remove a content encryption algorithm for enc header claim name.

Arguments
  • name - a enc 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.
  • encrypter - The JWS encrypter.

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
  • payload - The payload data.
  • header - The JWE shared protected and unprotected header claims.
  • recipients - The JWE header claims and the JWE encrypter pair for recipients.
  • aad - The JWE additional authenticated data.

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

Arguments
  • payload - The payload data.
  • header - The JWS shared protected and unprotected header claims.
  • recipient_headers - The JWE unprotected header claims for recipients.
  • aad - The JWE additional authenticated data.
  • selector - a function for selecting the encrypting algorithm.

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

Arguments
  • payload - The payload data.
  • header - The JWE shared protected and unprotected header claims.
  • recipient_header - The JWE unprotected header claims per recipient.
  • aad - The JWE additional authenticated data.
  • encrypter - The JWS encrypter.

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

Arguments
  • payload - The payload data.
  • header - The JWE shared protected and unprotected header claims.
  • recipient_header - The JWE unprotected header claims per recipient.
  • aad - The JWE additional authenticated data.
  • selector - a function for selecting the encrypting algorithm.

Deserialize the input that is formatted by compact serialization.

Arguments
  • input - The input data.
  • decrypter - The JWS decrypter.

Deserialize the input that is formatted by compact serialization.

Arguments
  • input - The input data.
  • selector - a function for selecting the decrypting algorithm.

Deserialize the input that is formatted by flattened json serialization.

Arguments
  • input - The input data.
  • decrypter - The JWE decrypter.

Deserialize the input that is formatted by flattened json serialization.

Arguments
  • input - The input data.
  • 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.