pub struct HideIdentityProvider { /* private fields */ }Expand description
Validates roster entries against a HIDE identity’s membership.
Every member the group admits must present a credential whose binding
signature verifies under a key that is currently trusted by the identity.
MLS calls this on join, on every commit that adds a member, and when
processing an external sender; it is the hook that makes BasicCredential’s
self-asserted name into something an attacker cannot simply claim.
Implementations§
Source§impl HideIdentityProvider
impl HideIdentityProvider
pub fn new(membership: Membership) -> Self
Sourcepub fn update(&self, membership: Membership)
pub fn update(&self, membership: Membership)
Replaces the membership every clone of this provider validates against. Call it after replaying a newer identity log, so a revoked device is refused at the next commit without rebuilding the client.
Sourcepub fn membership(&self) -> Membership
pub fn membership(&self) -> Membership
The membership currently enforced.
Sourcepub fn is_trusted(&self, signing_identity: &SigningIdentity) -> bool
pub fn is_trusted(&self, signing_identity: &SigningIdentity) -> bool
Whether a signing identity is a device the identity trusts right now. Public because the MLS rules below need the same verdict.
Trait Implementations§
Source§impl Clone for HideIdentityProvider
impl Clone for HideIdentityProvider
Source§impl Debug for HideIdentityProvider
impl Debug for HideIdentityProvider
Source§impl IdentityProvider for HideIdentityProvider
impl IdentityProvider for HideIdentityProvider
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>
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>
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>
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>
Auto Trait Implementations§
impl Forget for HideIdentityProvider
impl Freeze for HideIdentityProvider
impl Move for HideIdentityProvider
impl RefUnwindSafe for HideIdentityProvider
impl Send for HideIdentityProvider
impl Sync for HideIdentityProvider
impl Unpin for HideIdentityProvider
impl UnsafeUnpin for HideIdentityProvider
impl UnwindSafe for HideIdentityProvider
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
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> ⓘ
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> ⓘ
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