Struct josekit::jwe::JweHeaderSet [−][src]
pub struct JweHeaderSet { /* fields omitted */ }
Expand description
Represent JWE 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.
Set a value for content encryption header claim (enc).
Arguments
value
- a content encryptionprotection
- If it dosen’t need protection, set false.
Return the value for content encryption header claim (enc).
Return the value for compression header claim (zip).
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).
Return the value for agreement PartyUInfo header claim (apu).
Return the value for agreement PartyVInfo header claim (apv).
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 JweHeaderSet
impl Send for JweHeaderSet
impl Sync for JweHeaderSet
impl Unpin for JweHeaderSet
impl UnwindSafe for JweHeaderSet
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.