pub struct VerificationMethodDIDResolver<T, M> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<T: DIDResolver, M> ControllerProvider for VerificationMethodDIDResolver<T, M>
impl<T: DIDResolver, M> ControllerProvider for VerificationMethodDIDResolver<T, M>
source§type Controller<'a> = Document
where
Self: 'a
type Controller<'a> = Document where Self: 'a
Controller reference type.
source§async fn get_controller<'a>(
&'a self,
id: &'a Iri,
) -> Result<Option<Document>, ControllerError>
async fn get_controller<'a>( &'a self, id: &'a Iri, ) -> Result<Option<Document>, ControllerError>
Returns the controller with the given identifier, if it can be found.
source§async fn require_controller<'a>(
&'a self,
id: &'a Iri,
) -> Result<Self::Controller<'a>, ControllerError>
async fn require_controller<'a>( &'a self, id: &'a Iri, ) -> Result<Self::Controller<'a>, ControllerError>
Returns the controller with the given identifier, or fails if it cannot
be found.
source§async fn allows_verification_method<'a>(
&'a self,
controller_id: &'a Iri,
method_id: &'a Iri,
proof_purposes: ProofPurposes,
) -> Result<bool, ControllerError>
async fn allows_verification_method<'a>( &'a self, controller_id: &'a Iri, method_id: &'a Iri, proof_purposes: ProofPurposes, ) -> Result<bool, ControllerError>
Checks that the controller identified by
controller_id
allows the use
of the verification method method_id
with the given proof purposes.source§async fn ensure_allows_verification_method<'a>(
&'a self,
controller_id: &'a Iri,
method_id: &'a Iri,
proof_purpose: ProofPurpose,
) -> Result<(), ProofValidationError>
async fn ensure_allows_verification_method<'a>( &'a self, controller_id: &'a Iri, method_id: &'a Iri, proof_purpose: ProofPurpose, ) -> Result<(), ProofValidationError>
Ensures that the controller identified by
controller_id
allows the use
of the verification method method_id
with the given proof purposes. Read moresource§impl<T: DIDResolver, M> DIDResolver for VerificationMethodDIDResolver<T, M>
impl<T: DIDResolver, M> DIDResolver for VerificationMethodDIDResolver<T, M>
source§async fn resolve_representation<'a>(
&'a self,
did: &'a DID,
options: Options,
) -> Result<Output<Vec<u8>>, Error>
async fn resolve_representation<'a>( &'a self, did: &'a DID, options: Options, ) -> Result<Output<Vec<u8>>, Error>
Resolves a DID representation. Read more
source§async fn resolve_with<'a>(
&'a self,
did: &'a DID,
options: Options,
) -> Result<Output, Error>
async fn resolve_with<'a>( &'a self, did: &'a DID, options: Options, ) -> Result<Output, Error>
Resolves a DID with the given options. Read more
source§async fn resolve<'a>(&'a self, did: &'a DID) -> Result<Output, Error>
async fn resolve<'a>(&'a self, did: &'a DID) -> Result<Output, Error>
Resolves a DID. Read more
source§async fn resolve_into_any_verification_method<'a>(
&'a self,
did: &'a DID,
) -> Result<Option<DIDVerificationMethod>, Error>
async fn resolve_into_any_verification_method<'a>( &'a self, did: &'a DID, ) -> Result<Option<DIDVerificationMethod>, Error>
Resolves a DID and extracts one of the verification methods it defines. Read more
source§async fn dereference_primary<'a>(
&'a self,
primary_did_url: &'a PrimaryDIDURL,
) -> Result<DerefOutput<PrimaryContent>, DerefError>
async fn dereference_primary<'a>( &'a self, primary_did_url: &'a PrimaryDIDURL, ) -> Result<DerefOutput<PrimaryContent>, DerefError>
Dereference a DID URL to retrieve the primary content. Read more
source§async fn dereference_primary_with<'a>(
&'a self,
primary_did_url: &'a PrimaryDIDURL,
resolve_options: Options,
) -> Result<DerefOutput<PrimaryContent>, DerefError>
async fn dereference_primary_with<'a>( &'a self, primary_did_url: &'a PrimaryDIDURL, resolve_options: Options, ) -> Result<DerefOutput<PrimaryContent>, DerefError>
Dereference a DID URL to retrieve the primary content. Read more
source§async fn dereference_primary_with_path_or_query<'a>(
&'a self,
_primary_did_url: &'a PrimaryDIDURL,
) -> Result<DerefOutput<PrimaryContent>, DerefError>
async fn dereference_primary_with_path_or_query<'a>( &'a self, _primary_did_url: &'a PrimaryDIDURL, ) -> Result<DerefOutput<PrimaryContent>, DerefError>
Dereference a DID URL with a path or query to retrieve the primary
content. Read more
source§async fn dereference_with<'a>(
&'a self,
did_url: &'a DIDURL,
options: Options,
) -> Result<DerefOutput, DerefError>
async fn dereference_with<'a>( &'a self, did_url: &'a DIDURL, options: Options, ) -> Result<DerefOutput, DerefError>
Dereference a DID URL. Read more
source§async fn dereference<'a>(
&'a self,
did_url: &'a DIDURL,
) -> Result<DerefOutput, DerefError>
async fn dereference<'a>( &'a self, did_url: &'a DIDURL, ) -> Result<DerefOutput, DerefError>
Dereference a DID URL. Read more
source§fn into_vm_resolver_with<M>(
self,
options: Options,
) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
fn into_vm_resolver_with<M>(
self,
options: Options,
) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
Turns this DID resolver into a verification method resolver. Read more
source§fn into_vm_resolver<M>(self) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
fn into_vm_resolver<M>(self) -> VerificationMethodDIDResolver<Self, M>where
Self: Sized,
Turns this DID resolver into a verification method resolver. Read more
source§impl<T: Default, M> Default for VerificationMethodDIDResolver<T, M>
impl<T: Default, M> Default for VerificationMethodDIDResolver<T, M>
source§impl<T: DIDResolver, M> JWKResolver for VerificationMethodDIDResolver<T, M>where
M: MaybeJwkVerificationMethod + VerificationMethodSet + TryFrom<GenericVerificationMethod, Error = InvalidVerificationMethod>,
impl<T: DIDResolver, M> JWKResolver for VerificationMethodDIDResolver<T, M>where
M: MaybeJwkVerificationMethod + VerificationMethodSet + TryFrom<GenericVerificationMethod, Error = InvalidVerificationMethod>,
source§async fn fetch_public_jwk(
&self,
key_id: Option<&str>,
) -> Result<Cow<'_, JWK>, ProofValidationError>
async fn fetch_public_jwk( &self, key_id: Option<&str>, ) -> Result<Cow<'_, JWK>, ProofValidationError>
Fetches a JWK by id. Read more
source§impl<T: DIDResolver, M> VerificationMethodResolver for VerificationMethodDIDResolver<T, M>where
M: VerificationMethod + TryFrom<GenericVerificationMethod, Error = InvalidVerificationMethod>,
impl<T: DIDResolver, M> VerificationMethodResolver for VerificationMethodDIDResolver<T, M>where
M: VerificationMethod + TryFrom<GenericVerificationMethod, Error = InvalidVerificationMethod>,
source§async fn resolve_verification_method_with(
&self,
_issuer: Option<&Iri>,
method: Option<ReferenceOrOwnedRef<'_, M>>,
options: ResolutionOptions,
) -> Result<Cow<'_, M>, VerificationMethodResolutionError>
async fn resolve_verification_method_with( &self, _issuer: Option<&Iri>, method: Option<ReferenceOrOwnedRef<'_, M>>, options: ResolutionOptions, ) -> Result<Cow<'_, M>, VerificationMethodResolutionError>
Resolve the verification method reference.
source§async fn resolve_verification_method(
&self,
issuer: Option<&Iri>,
method: Option<ReferenceOrOwnedRef<'_, Self::Method>>,
) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError>
async fn resolve_verification_method( &self, issuer: Option<&Iri>, method: Option<ReferenceOrOwnedRef<'_, Self::Method>>, ) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError>
Resolve the verification method reference with the default options.
Auto Trait Implementations§
impl<T, M> Freeze for VerificationMethodDIDResolver<T, M>where
T: Freeze,
impl<T, M> RefUnwindSafe for VerificationMethodDIDResolver<T, M>where
T: RefUnwindSafe,
M: RefUnwindSafe,
impl<T, M> Send for VerificationMethodDIDResolver<T, M>
impl<T, M> Sync for VerificationMethodDIDResolver<T, M>
impl<T, M> Unpin for VerificationMethodDIDResolver<T, M>
impl<T, M> UnwindSafe for VerificationMethodDIDResolver<T, M>where
T: UnwindSafe,
M: UnwindSafe,
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
source§impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T
.