Struct josekit::jws::JwsHeaderSet [−][src]
pub struct JwsHeaderSet { /* fields omitted */ }
Expand description
Represent JWS protected and unprotected header claims
Implementations
Set a value for algorithm header claim (alg).
Arguments
value
- a algorithmprotection
- If it dosen’t need protection, set false.
Return the value for JWK set URL header claim (jku).
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).
Return the value for token type header claim (typ).
Return the value for content type header claim (cty).
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).
pub fn set_claim(
&mut self,
key: &str,
value: Option<Value>,
protection: bool
) -> Result<(), JoseError>
Return values for header claims set
Trait Implementations
type Target = dyn JoseHeader
type Target = dyn JoseHeader
The resulting type after dereferencing.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for JwsHeaderSet
impl Send for JwsHeaderSet
impl Sync for JwsHeaderSet
impl Unpin for JwsHeaderSet
impl UnwindSafe for JwsHeaderSet
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.