pub struct JwsHeader { /* fields omitted */ }
Expand description
Represent JWS header claims
Return a JwsHeader instance.
Return a new header instance from json style header.
value
- The json style header claims
Return a new header instance from map.
Set a value for algorithm header claim (alg).
Return the value for algorithm header claim (alg).
Set a value for JWK set URL header claim (jku).
Return the value for JWK set URL header claim (jku).
Set a value for JWK header claim (jwk).
Return the value for JWK header claim (jwk).
Set a value for X.509 URL header claim (x5u).
Return a value for a X.509 URL header claim (x5u).
Set values for X.509 certificate chain header claim (x5c).
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).
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).
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).
Return the value for key ID header claim (kid).
Set a value for token type header claim (typ).
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).
value
- a content type (e.g. “JWT”)
Return the value for content type header claim (cty).
Set values for critical header claim (crit).
values
- critical claim names
Return values for critical header claim (crit).
Set a value for base64url-encode payload header claim (b64).
value
- is base64url-encode payload
Return the value for base64url-encode payload header claim (b64).
Set a value for url header claim (url).
Return the value for url header claim (url).
Set a value for a nonce header claim (nonce).
Return the value for nonce header claim (nonce).
Set a value for header claim of a specified key.
key
- a key name of header claim
value
- a typed value of header claim
Return values for header claims set
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
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 !=
.
impl<T> Any for T where
T: 'static + ?Sized,
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.
impl<T, U> Into<U> for T where
U: From<T>,
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.
The type returned in the event of a conversion error.