Struct compact_jwt::compact::JweCompact
source · 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.
Trait Implementations§
source§impl Clone for JweCompact
impl Clone for JweCompact
source§fn clone(&self) -> JweCompact
fn clone(&self) -> JweCompact
Returns a copy 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 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