Struct josekit::jws::JwsHeader[][src]

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

Represent JWS header claims

Implementations

Return a JwsHeader instance.

Return a new header instance from json style header.

Arguments
  • value - The json style header claims

Return a new header instance from map.

Arguments
  • map - JWT header claims.

Set a value for algorithm header claim (alg).

Arguments
  • value - a algorithm

Return the value for algorithm header claim (alg).

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 base64url-encode payload header claim (b64).

Arguments
  • value - is base64url-encode payload

Return the value for base64url-encode payload header claim (b64).

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 header claim of a specified key.

Arguments
  • key - a key name of header claim
  • value - a typed value of header claim

Return values for header claims set

Convert into map

Trait Implementations

Performs the conversion.

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

Performs the conversion.

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.