pub struct MessageIntegrity<'a> { /* private fields */ }Expand description
The MESSAGE-INTEGRITY key: an HMAC-SHA1 is computed over the message with it.
Built from a short-term password, or from a long-term username/realm/password triple.
Implementations§
Source§impl<'a> MessageIntegrity<'a>
impl<'a> MessageIntegrity<'a>
Sourcepub fn new_raw_integrity_with_provider(
key: impl Into<Vec<u8>>,
crypto: &'a dyn RTCCrypto,
) -> Self
pub fn new_raw_integrity_with_provider( key: impl Into<Vec<u8>>, crypto: &'a dyn RTCCrypto, ) -> Self
Creates a raw-key integrity attribute with an explicit crypto provider.
Sourcepub fn new_short_term_integrity_with_provider(
password: String,
crypto: &'a dyn RTCCrypto,
) -> Self
pub fn new_short_term_integrity_with_provider( password: String, crypto: &'a dyn RTCCrypto, ) -> Self
Creates a short-term integrity attribute with an explicit crypto provider.
Sourcepub fn new_long_term_integrity_with_provider(
username: String,
realm: String,
password: String,
crypto: &'a dyn RTCCrypto,
) -> Result<Self>
pub fn new_long_term_integrity_with_provider( username: String, realm: String, password: String, crypto: &'a dyn RTCCrypto, ) -> Result<Self>
Creates a long-term integrity attribute with an explicit crypto provider.
Trait Implementations§
Source§impl<'a> Clone for MessageIntegrity<'a>
impl<'a> Clone for MessageIntegrity<'a>
Source§fn clone(&self) -> MessageIntegrity<'a>
fn clone(&self) -> MessageIntegrity<'a>
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<'a> Display for MessageIntegrity<'a>
impl<'a> Display for MessageIntegrity<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MessageIntegrity<'a>
impl<'a> !UnwindSafe for MessageIntegrity<'a>
impl<'a> Freeze for MessageIntegrity<'a>
impl<'a> Send for MessageIntegrity<'a>
impl<'a> Sync for MessageIntegrity<'a>
impl<'a> Unpin for MessageIntegrity<'a>
impl<'a> UnsafeUnpin for MessageIntegrity<'a>
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