pub struct JweCompact { /* private fields */ }Expand description
A Compact JWE that is able to be deciphered or stringified for transmission
Implementations§
Source§impl JweCompact
impl JweCompact
Sourcepub fn get_jwk_pubkey_url(&self) -> Option<&Url>
pub fn get_jwk_pubkey_url(&self) -> Option<&Url>
Get the embedded Url for the Jwk that enciphered this Jwe.
You MUST ensure this url uses HTTPS and you MUST ensure that your client validates the CA’s used.
Sourcepub fn get_jwk_pubkey(&self) -> Option<&Jwk>
pub fn get_jwk_pubkey(&self) -> Option<&Jwk>
Get the embedded public key used to encipher this Jwe, if present.
Sourcepub fn get_alg_enc(&self) -> (JweAlg, JweEnc)
pub fn get_alg_enc(&self) -> (JweAlg, JweEnc)
Return the CEK Algorithm and the inner encryption type.
Sourcepub fn header(&self) -> &JweProtectedHeader
pub fn header(&self) -> &JweProtectedHeader
View the content of the JWE header. At this point the content is UNVERIFIED and may NOT BE TRUSTED.
Trait Implementations§
Source§impl Clone for JweCompact
impl Clone for JweCompact
Source§fn clone(&self) -> JweCompact
fn clone(&self) -> JweCompact
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JweCompact
impl Debug for JweCompact
Source§impl Display for JweCompact
impl Display for JweCompact
Auto Trait Implementations§
impl Freeze for JweCompact
impl RefUnwindSafe for JweCompact
impl Send for JweCompact
impl Sync for JweCompact
impl Unpin for JweCompact
impl UnsafeUnpin for JweCompact
impl UnwindSafe for JweCompact
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more