Struct josekit::jwe::JweHeaderSet[][src]

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

Represent JWE protected and unprotected header claims

Implementations

Return a JweHeader instance.

Set a value for algorithm header claim (alg).

Arguments
  • value - a algorithm
  • protection - If it dosen’t need protection, set false.

Return the value for algorithm header claim (alg).

Set a value for content encryption header claim (enc).

Arguments
  • value - a content encryption
  • protection - If it dosen’t need protection, set false.

Return the value for content encryption header claim (enc).

Set a value for compression header claim (zip).

Arguments
  • value - a encryption

Return the value for compression header claim (zip).

Set a value for JWK set URL header claim (jku).

Arguments
  • value - a JWK set URL

Return the value for JWK set URL header claim (jku).

Set a value for JWK header claim (jwk).

Arguments
  • value - a JWK

Return the value for JWK header claim (jwk).

Set a value for X.509 URL header claim (x5u).

Arguments
  • value - a X.509 URL

Return a value for a X.509 URL header claim (x5u).

Set values for X.509 certificate chain header claim (x5c).

Arguments
  • values - X.509 certificate chain

Return values for a X.509 certificate chain header claim (x5c).

Set a value for X.509 certificate SHA-1 thumbprint header claim (x5t).

Arguments
  • value - A X.509 certificate SHA-1 thumbprint

Return the value for X.509 certificate SHA-1 thumbprint header claim (x5t).

Set a value for a x509 certificate SHA-256 thumbprint header claim (x5t#S256).

Arguments
  • value - A x509 certificate SHA-256 thumbprint

Return the value for X.509 certificate SHA-256 thumbprint header claim (x5t#S256).

Set a value for key ID header claim (kid).

Arguments
  • value - a key ID

Return the value for key ID header claim (kid).

Set a value for token type header claim (typ).

Arguments
  • value - a token type (e.g. “JWT”)

Return the value for token type header claim (typ).

Set a value for content type header claim (cty).

Arguments
  • value - a content type (e.g. “JWT”)

Return the value for content type header claim (cty).

Set values for critical header claim (crit).

Arguments
  • values - critical claim names

Return values for critical header claim (crit).

Set a value for url header claim (url).

Arguments
  • value - a url

Return the value for url header claim (url).

Set a value for a nonce header claim (nonce).

Arguments
  • value - A nonce

Return the value for nonce header claim (nonce).

Set a value for a agreement PartyUInfo header claim (apu).

Arguments
  • value - A agreement PartyUInfo

Return the value for agreement PartyUInfo header claim (apu).

Set a value for a agreement PartyVInfo header claim (apv).

Arguments
  • value - A agreement PartyVInfo

Return the value for agreement PartyVInfo header claim (apv).

Set a value for issuer header claim (iss).

Arguments
  • value - a issuer

Return the value for issuer header claim (iss).

Set a value for subject header claim (sub).

Arguments
  • value - a subject

Return the value for subject header claim (sub).

Set values for audience header claim (aud).

Arguments
  • values - a list of audiences

Return values for audience header claim (aud).

Return values for header claims set

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

The resulting type after dereferencing.

Dereferences the value.

Formats the value using the given formatter. Read more

Return the value for header claim of a specified key. 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

Converts the given value to a String. 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.