Enum dup_crypto::private_message::AuthenticationPolicy [−][src]
pub enum AuthenticationPolicy { PrivateAuthentication, Signature, }
Expand description
Authentication policy.
Warning: Take the time to study which is the authentication policy adapted to your specific use case. Choosing an unsuitable authentication policy can be dramatic for your end users.
Variants
Only the sender and the recipient have proof that the message was written by one of them.
The recipient knows that he is not the author of the message so he has proof that the message was necessarily written by the sender.
If your use case is the encrypted correspondence between machines in a decentralized network,
and you sometimes need to prove that a machine has sent this or that message (to prove for example that it has not honored a commitment),
then choose policy Signature
instead.
The sender proves that he is the author of the message.
If the message is publicly disclosed, everyone will have proof that the sender is indeed the one who wrote the message.
In certain uses this can be harmful to the sender: in case of conflict with the recipient,
the latter may threaten to disclose their private correspondence to blackmail the sender.
If your use case is private messaging between humans, choose method PrivateAuthentication
instead.
Trait Implementations
impl Clone for AuthenticationPolicy
[src]
impl Clone for AuthenticationPolicy
[src]fn clone(&self) -> AuthenticationPolicy
[src]
fn clone(&self) -> AuthenticationPolicy
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AuthenticationPolicy
[src]
impl Debug for AuthenticationPolicy
[src]impl Copy for AuthenticationPolicy
[src]
Auto Trait Implementations
impl RefUnwindSafe for AuthenticationPolicy
impl Send for AuthenticationPolicy
impl Sync for AuthenticationPolicy
impl Unpin for AuthenticationPolicy
impl UnwindSafe for AuthenticationPolicy
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more