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
Source§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>,
_context: MemberValidationContext<'_>,
) -> Result<(), Self::Error>
fn validate_member( &self, signing_identity: &SigningIdentity, _timestamp: Option<MlsTime>, _context: MemberValidationContext<'_>, ) -> 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,
_extensions: &ExtensionList,
) -> Result<Vec<u8>, Self::Error>
fn identity( &self, signing_identity: &SigningIdentity, _extensions: &ExtensionList, ) -> Result<Vec<u8>, Self::Error>
A unique identifier for
signing_identity
. Read moreSource§fn valid_successor(
&self,
predecessor: &SigningIdentity,
successor: &SigningIdentity,
_extensions: &ExtensionList,
) -> Result<bool, Self::Error>
fn valid_successor( &self, predecessor: &SigningIdentity, successor: &SigningIdentity, _extensions: &ExtensionList, ) -> 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.
Auto Trait Implementations§
impl Freeze for BasicIdentityProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more