// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // Copyright by contributors to this project. // SPDX-License-Identifier: (Apache-2.0 OR MIT)
usecrate::{identity::CredentialType, identity::SigningIdentity, time::MlsTime}; use alloc::vec; use alloc::vec::Vec; pubuse mls_rs_core::identity::BasicCredential; use mls_rs_core::{error::IntoAnyError, extension::ExtensionList, identity::IdentityProvider};
#[derive(Debug)] #[cfg_attr(feature = "std", derive(thiserror::Error))] #[cfg_attr(feature = "std", error("unsupported credential type found: {0:?}"))] /// Error returned in the event that a non-basic /// credential is passed to a [`BasicIdentityProvider`]. pubstruct BasicIdentityProviderError(CredentialType);
#[derive(Clone, Debug, Default)] /// 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. pubstruct BasicIdentityProvider;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.