Struct mls_rs::identity::basic::BasicIdentityProvider
source · pub struct BasicIdentityProvider;
Expand description
An always-valid identity provider that works with BasicCredential
.
Warning
This provider always returns true
for validate
as long as the
SigningIdentity
used contains a BasicCredential
. It is only
recommended to use this provider for testing purposes.
Implementations§
Trait Implementations§
source§impl Clone for BasicIdentityProvider
impl Clone for BasicIdentityProvider
source§fn clone(&self) -> BasicIdentityProvider
fn clone(&self) -> BasicIdentityProvider
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 BasicIdentityProvider
impl Debug for BasicIdentityProvider
source§impl Default for BasicIdentityProvider
impl Default for BasicIdentityProvider
source§fn default() -> BasicIdentityProvider
fn default() -> BasicIdentityProvider
Returns the “default value” for a type. Read more
source§impl IdentityProvider for BasicIdentityProvider
impl IdentityProvider for BasicIdentityProvider
§type Error = BasicIdentityProviderError
type Error = BasicIdentityProviderError
Error type that this provider returns on internal failure.
source§fn validate_member(
&self,
signing_identity: &SigningIdentity,
_timestamp: Option<MlsTime>,
_extensions: Option<&ExtensionList>
) -> Result<(), Self::Error>
fn validate_member( &self, signing_identity: &SigningIdentity, _timestamp: Option<MlsTime>, _extensions: Option<&ExtensionList> ) -> Result<(), Self::Error>
Determine if
signing_identity
is valid for a group member. Read moresource§fn validate_external_sender(
&self,
signing_identity: &SigningIdentity,
_timestamp: Option<MlsTime>,
_extensions: Option<&ExtensionList>
) -> Result<(), Self::Error>
fn validate_external_sender( &self, signing_identity: &SigningIdentity, _timestamp: Option<MlsTime>, _extensions: Option<&ExtensionList> ) -> Result<(), Self::Error>
Determine if
signing_identity
is valid for an external sender in
the ExternalSendersExtension stored in the group context. Read moresource§fn identity(
&self,
signing_identity: &SigningIdentity
) -> Result<Vec<u8>, Self::Error>
fn identity( &self, signing_identity: &SigningIdentity ) -> Result<Vec<u8>, Self::Error>
A unique identifier for
signing_identity
. Read moresource§fn valid_successor(
&self,
predecessor: &SigningIdentity,
successor: &SigningIdentity
) -> Result<bool, Self::Error>
fn valid_successor( &self, predecessor: &SigningIdentity, successor: &SigningIdentity ) -> Result<bool, Self::Error>
source§fn supported_types(&self) -> Vec<CredentialType>
fn supported_types(&self) -> Vec<CredentialType>
Credential types that are supported by this provider.
source§fn identity_warnings(
&self,
_update: &RosterUpdate
) -> Result<Vec<IdentityWarning>, Self::Error>
fn identity_warnings( &self, _update: &RosterUpdate ) -> Result<Vec<IdentityWarning>, Self::Error>
Throw warnings based on changes to a group roster. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BasicIdentityProvider
impl Send for BasicIdentityProvider
impl Sync for BasicIdentityProvider
impl Unpin for BasicIdentityProvider
impl UnwindSafe for BasicIdentityProvider
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