pub struct DirectJweDecrypter { /* private fields */ }Implementations§
Source§impl DirectJweDecrypter
impl DirectJweDecrypter
pub fn set_key_id(&mut self, value: impl Into<String>)
pub fn remove_key_id(&mut self)
Trait Implementations§
Source§impl Clone for DirectJweDecrypter
impl Clone for DirectJweDecrypter
Source§fn clone(&self) -> DirectJweDecrypter
fn clone(&self) -> DirectJweDecrypter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DirectJweDecrypter
impl Debug for DirectJweDecrypter
Source§impl Deref for DirectJweDecrypter
impl Deref for DirectJweDecrypter
Source§impl JweDecrypter for DirectJweDecrypter
impl JweDecrypter for DirectJweDecrypter
Source§fn algorithm(&self) -> &dyn JweAlgorithm
fn algorithm(&self) -> &dyn JweAlgorithm
Return the source algorithm instance.
Source§fn key_id(&self) -> Option<&str>
fn key_id(&self) -> Option<&str>
Return the source key ID.
The default value is a value of kid parameter in JWK.
Source§fn decrypt(
&self,
encrypted_key: Option<&[u8]>,
_cencryption: &dyn JweContentEncryption,
_header: &JweHeader,
) -> Result<Cow<'_, [u8]>, JoseError>
fn decrypt( &self, encrypted_key: Option<&[u8]>, _cencryption: &dyn JweContentEncryption, _header: &JweHeader, ) -> Result<Cow<'_, [u8]>, JoseError>
Return a decrypted key. Read more
fn box_clone(&self) -> Box<dyn JweDecrypter>
Auto Trait Implementations§
impl Freeze for DirectJweDecrypter
impl RefUnwindSafe for DirectJweDecrypter
impl Send for DirectJweDecrypter
impl Sync for DirectJweDecrypter
impl Unpin for DirectJweDecrypter
impl UnsafeUnpin for DirectJweDecrypter
impl UnwindSafe for DirectJweDecrypter
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