pub enum AnyJwkMethod {
JsonWebKey2020(JsonWebKey2020),
RsaVerificationKey2018(RsaVerificationKey2018),
Ed25519VerificationKey2018(Ed25519VerificationKey2018),
Ed25519VerificationKey2020(Ed25519VerificationKey2020),
EcdsaSecp256k1VerificationKey2019(EcdsaSecp256k1VerificationKey2019),
EcdsaSecp256r1VerificationKey2019(EcdsaSecp256r1VerificationKey2019),
SolanaMethod2021(SolanaMethod2021),
}
Variants§
JsonWebKey2020(JsonWebKey2020)
JsonWebKey2020
.
RsaVerificationKey2018(RsaVerificationKey2018)
Deprecated verification method for the RsaSignature2018
suite.
Ed25519VerificationKey2018(Ed25519VerificationKey2018)
Deprecated verification method for the Ed25519Signature2018
suite.
Ed25519VerificationKey2020(Ed25519VerificationKey2020)
Deprecated verification method for the Ed25519Signature2020
suite.
EcdsaSecp256k1VerificationKey2019(EcdsaSecp256k1VerificationKey2019)
EcdsaSecp256r1VerificationKey2019(EcdsaSecp256r1VerificationKey2019)
SolanaMethod2021(SolanaMethod2021)
Implementations§
Source§impl AnyJwkMethod
impl AnyJwkMethod
pub fn type_(&self) -> AnyJwkMethodType
Source§impl AnyJwkMethod
impl AnyJwkMethod
Sourcepub fn public_key_jwk(&self) -> Cow<'_, JWK>
pub fn public_key_jwk(&self) -> Cow<'_, JWK>
Returns the public key of the verification method as a JWK.
Some methods don’t have any the public key embedded.
Trait Implementations§
Source§impl Clone for AnyJwkMethod
impl Clone for AnyJwkMethod
Source§fn clone(&self) -> AnyJwkMethod
fn clone(&self) -> AnyJwkMethod
Returns a duplicate 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 AnyJwkMethod
impl Debug for AnyJwkMethod
Source§impl<'de> Deserialize<'de> for AnyJwkMethod
impl<'de> Deserialize<'de> for AnyJwkMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EcdsaSecp256k1VerificationKey2019> for AnyJwkMethod
impl From<EcdsaSecp256k1VerificationKey2019> for AnyJwkMethod
Source§fn from(value: EcdsaSecp256k1VerificationKey2019) -> Self
fn from(value: EcdsaSecp256k1VerificationKey2019) -> Self
Converts to this type from the input type.
Source§impl From<EcdsaSecp256r1VerificationKey2019> for AnyJwkMethod
impl From<EcdsaSecp256r1VerificationKey2019> for AnyJwkMethod
Source§fn from(value: EcdsaSecp256r1VerificationKey2019) -> Self
fn from(value: EcdsaSecp256r1VerificationKey2019) -> Self
Converts to this type from the input type.
Source§impl From<Ed25519VerificationKey2018> for AnyJwkMethod
Deprecated verification method for the Ed25519Signature2018
suite.
impl From<Ed25519VerificationKey2018> for AnyJwkMethod
Deprecated verification method for the Ed25519Signature2018
suite.
Source§fn from(value: Ed25519VerificationKey2018) -> Self
fn from(value: Ed25519VerificationKey2018) -> Self
Converts to this type from the input type.
Source§impl From<Ed25519VerificationKey2020> for AnyJwkMethod
Deprecated verification method for the Ed25519Signature2020
suite.
impl From<Ed25519VerificationKey2020> for AnyJwkMethod
Deprecated verification method for the Ed25519Signature2020
suite.
Source§fn from(value: Ed25519VerificationKey2020) -> Self
fn from(value: Ed25519VerificationKey2020) -> Self
Converts to this type from the input type.
Source§impl From<JsonWebKey2020> for AnyJwkMethod
JsonWebKey2020
.
impl From<JsonWebKey2020> for AnyJwkMethod
JsonWebKey2020
.
Source§fn from(value: JsonWebKey2020) -> Self
fn from(value: JsonWebKey2020) -> Self
Converts to this type from the input type.
Source§impl From<RsaVerificationKey2018> for AnyJwkMethod
Deprecated verification method for the RsaSignature2018
suite.
impl From<RsaVerificationKey2018> for AnyJwkMethod
Deprecated verification method for the RsaSignature2018
suite.
Source§fn from(value: RsaVerificationKey2018) -> Self
fn from(value: RsaVerificationKey2018) -> Self
Converts to this type from the input type.
Source§impl From<SolanaMethod2021> for AnyJwkMethod
impl From<SolanaMethod2021> for AnyJwkMethod
Source§fn from(value: SolanaMethod2021) -> Self
fn from(value: SolanaMethod2021) -> Self
Converts to this type from the input type.
Source§impl JwkVerificationMethod for AnyJwkMethod
impl JwkVerificationMethod for AnyJwkMethod
Source§impl<I_, V_> LinkedData<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedData<I_, V_>,
RsaVerificationKey2018: LinkedData<I_, V_>,
Ed25519VerificationKey2018: LinkedData<I_, V_>,
Ed25519VerificationKey2020: LinkedData<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedData<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedData<I_, V_>,
SolanaMethod2021: LinkedData<I_, V_>,
I_: Interpretation,
V_: Vocabulary,
impl<I_, V_> LinkedData<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedData<I_, V_>,
RsaVerificationKey2018: LinkedData<I_, V_>,
Ed25519VerificationKey2018: LinkedData<I_, V_>,
Ed25519VerificationKey2020: LinkedData<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedData<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedData<I_, V_>,
SolanaMethod2021: LinkedData<I_, V_>,
I_: Interpretation,
V_: Vocabulary,
Source§impl<I_, V_> LinkedDataDeserializePredicateObjects<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataDeserializeSubject<I_, V_>,
RsaVerificationKey2018: LinkedDataDeserializeSubject<I_, V_>,
Ed25519VerificationKey2018: LinkedDataDeserializeSubject<I_, V_>,
Ed25519VerificationKey2020: LinkedDataDeserializeSubject<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataDeserializeSubject<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataDeserializeSubject<I_, V_>,
SolanaMethod2021: LinkedDataDeserializeSubject<I_, V_>,
I_: Interpretation + ReverseIriInterpretation<Iri = V_::Iri>,
V_: Vocabulary,
impl<I_, V_> LinkedDataDeserializePredicateObjects<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataDeserializeSubject<I_, V_>,
RsaVerificationKey2018: LinkedDataDeserializeSubject<I_, V_>,
Ed25519VerificationKey2018: LinkedDataDeserializeSubject<I_, V_>,
Ed25519VerificationKey2020: LinkedDataDeserializeSubject<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataDeserializeSubject<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataDeserializeSubject<I_, V_>,
SolanaMethod2021: LinkedDataDeserializeSubject<I_, V_>,
I_: Interpretation + ReverseIriInterpretation<Iri = V_::Iri>,
V_: Vocabulary,
fn deserialize_objects_in<'de_, D_>( vocabulary: &V_, interpretation: &I_, dataset: &D_, graph: Option<&I_::Resource>, objects: impl IntoIterator<Item = &'de_ I_::Resource>, context: Context<'_, I_>, ) -> Result<Self, FromLinkedDataError>
fn deserialize_objects<'a, D>(
vocabulary: &V,
interpretation: &I,
dataset: &D,
graph: Option<&<I as Interpretation>::Resource>,
objects: impl IntoIterator<Item = &'a <I as Interpretation>::Resource>,
) -> Result<Self, FromLinkedDataError>where
<I as Interpretation>::Resource: 'a,
D: PatternMatchingDataset<Resource = <I as Interpretation>::Resource>,
Source§impl<I_, V_> LinkedDataDeserializeSubject<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataDeserializeSubject<I_, V_>,
RsaVerificationKey2018: LinkedDataDeserializeSubject<I_, V_>,
Ed25519VerificationKey2018: LinkedDataDeserializeSubject<I_, V_>,
Ed25519VerificationKey2020: LinkedDataDeserializeSubject<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataDeserializeSubject<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataDeserializeSubject<I_, V_>,
SolanaMethod2021: LinkedDataDeserializeSubject<I_, V_>,
I_: Interpretation + ReverseIriInterpretation<Iri = V_::Iri>,
V_: Vocabulary,
impl<I_, V_> LinkedDataDeserializeSubject<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataDeserializeSubject<I_, V_>,
RsaVerificationKey2018: LinkedDataDeserializeSubject<I_, V_>,
Ed25519VerificationKey2018: LinkedDataDeserializeSubject<I_, V_>,
Ed25519VerificationKey2020: LinkedDataDeserializeSubject<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataDeserializeSubject<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataDeserializeSubject<I_, V_>,
SolanaMethod2021: LinkedDataDeserializeSubject<I_, V_>,
I_: Interpretation + ReverseIriInterpretation<Iri = V_::Iri>,
V_: Vocabulary,
fn deserialize_subject_in<D_>(
vocabulary_: &V_,
interpretation_: &I_,
dataset_: &D_,
graph_: Option<&I_::Resource>,
resource_: &I_::Resource,
outer_context_: Context<'_, I_>,
) -> Result<Self, FromLinkedDataError>where
D_: PatternMatchingDataset<Resource = I_::Resource>,
fn deserialize_subject<D>( vocabulary: &V, interpretation: &I, dataset: &D, graph: Option<&<I as Interpretation>::Resource>, resource: &<I as Interpretation>::Resource, ) -> Result<Self, FromLinkedDataError>
Source§impl<I_, V_> LinkedDataGraph<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataGraph<I_, V_>,
RsaVerificationKey2018: LinkedDataGraph<I_, V_>,
Ed25519VerificationKey2018: LinkedDataGraph<I_, V_>,
Ed25519VerificationKey2020: LinkedDataGraph<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataGraph<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataGraph<I_, V_>,
SolanaMethod2021: LinkedDataGraph<I_, V_>,
I_: Interpretation,
V_: Vocabulary,
impl<I_, V_> LinkedDataGraph<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataGraph<I_, V_>,
RsaVerificationKey2018: LinkedDataGraph<I_, V_>,
Ed25519VerificationKey2018: LinkedDataGraph<I_, V_>,
Ed25519VerificationKey2020: LinkedDataGraph<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataGraph<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataGraph<I_, V_>,
SolanaMethod2021: LinkedDataGraph<I_, V_>,
I_: Interpretation,
V_: Vocabulary,
fn visit_graph<S_>(&self, visitor: S_) -> Result<S_::Ok, S_::Error>where
S_: GraphVisitor<I_, V_>,
Source§impl<I_, V_> LinkedDataPredicateObjects<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataPredicateObjects<I_, V_>,
RsaVerificationKey2018: LinkedDataPredicateObjects<I_, V_>,
Ed25519VerificationKey2018: LinkedDataPredicateObjects<I_, V_>,
Ed25519VerificationKey2020: LinkedDataPredicateObjects<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataPredicateObjects<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataPredicateObjects<I_, V_>,
SolanaMethod2021: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary,
impl<I_, V_> LinkedDataPredicateObjects<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataPredicateObjects<I_, V_>,
RsaVerificationKey2018: LinkedDataPredicateObjects<I_, V_>,
Ed25519VerificationKey2018: LinkedDataPredicateObjects<I_, V_>,
Ed25519VerificationKey2020: LinkedDataPredicateObjects<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataPredicateObjects<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataPredicateObjects<I_, V_>,
SolanaMethod2021: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary,
fn visit_objects<S_>(&self, visitor: S_) -> Result<S_::Ok, S_::Error>where
S_: PredicateObjectsVisitor<I_, V_>,
Source§impl<I_, V_> LinkedDataResource<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataResource<I_, V_>,
RsaVerificationKey2018: LinkedDataResource<I_, V_>,
Ed25519VerificationKey2018: LinkedDataResource<I_, V_>,
Ed25519VerificationKey2020: LinkedDataResource<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataResource<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataResource<I_, V_>,
SolanaMethod2021: LinkedDataResource<I_, V_>,
V_: Vocabulary,
I_: Interpretation,
impl<I_, V_> LinkedDataResource<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataResource<I_, V_>,
RsaVerificationKey2018: LinkedDataResource<I_, V_>,
Ed25519VerificationKey2018: LinkedDataResource<I_, V_>,
Ed25519VerificationKey2020: LinkedDataResource<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataResource<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataResource<I_, V_>,
SolanaMethod2021: LinkedDataResource<I_, V_>,
V_: Vocabulary,
I_: Interpretation,
fn interpretation( &self, vocabulary: &mut V_, interpretation: &mut I_, ) -> ResourceInterpretation<'_, I_, V_>
fn lexical_representation<'a>(
&'a self,
vocabulary: &'a mut V,
interpretation: &'a mut I,
) -> Option<CowRdfTerm<'a, V>>where
I: ReverseTermInterpretation<Iri = <V as IriVocabulary>::Iri, BlankId = <V as BlankIdVocabulary>::BlankId, Literal = <V as LiteralVocabulary>::Literal>,
fn reference_interpretation( &self, vocabulary: &mut V, interpretation: &mut I, ) -> ResourceInterpretation<'_, I, V>
Source§impl<I_, V_> LinkedDataSubject<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataSubject<I_, V_>,
RsaVerificationKey2018: LinkedDataSubject<I_, V_>,
Ed25519VerificationKey2018: LinkedDataSubject<I_, V_>,
Ed25519VerificationKey2020: LinkedDataSubject<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataSubject<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataSubject<I_, V_>,
SolanaMethod2021: LinkedDataSubject<I_, V_>,
I_: Interpretation,
V_: Vocabulary,
impl<I_, V_> LinkedDataSubject<I_, V_> for AnyJwkMethodwhere
JsonWebKey2020: LinkedDataSubject<I_, V_>,
RsaVerificationKey2018: LinkedDataSubject<I_, V_>,
Ed25519VerificationKey2018: LinkedDataSubject<I_, V_>,
Ed25519VerificationKey2020: LinkedDataSubject<I_, V_>,
EcdsaSecp256k1VerificationKey2019: LinkedDataSubject<I_, V_>,
EcdsaSecp256r1VerificationKey2019: LinkedDataSubject<I_, V_>,
SolanaMethod2021: LinkedDataSubject<I_, V_>,
I_: Interpretation,
V_: Vocabulary,
fn visit_subject<S_>(&self, visitor: S_) -> Result<S_::Ok, S_::Error>where
S_: SubjectVisitor<I_, V_>,
Source§impl Serialize for AnyJwkMethod
impl Serialize for AnyJwkMethod
Source§impl SigningMethod<JWK, Algorithm> for AnyJwkMethod
impl SigningMethod<JWK, Algorithm> for AnyJwkMethod
fn sign_bytes( &self, secret: &JWK, algorithm: AlgorithmInstance, bytes: &[u8], ) -> Result<Vec<u8>, MessageSignatureError>
fn sign_bytes_multi( &self, secret: &S, algorithm: <A as SignatureAlgorithmType>::Instance, messages: &[Vec<u8>], ) -> Result<Vec<u8>, MessageSignatureError>
Source§impl TryFrom<AnyJwkMethod> for EcdsaSecp256k1VerificationKey2019
impl TryFrom<AnyJwkMethod> for EcdsaSecp256k1VerificationKey2019
Source§type Error = InvalidVerificationMethod
type Error = InvalidVerificationMethod
The type returned in the event of a conversion error.
Source§impl TryFrom<AnyJwkMethod> for EcdsaSecp256r1VerificationKey2019
impl TryFrom<AnyJwkMethod> for EcdsaSecp256r1VerificationKey2019
Source§type Error = InvalidVerificationMethod
type Error = InvalidVerificationMethod
The type returned in the event of a conversion error.
Source§impl TryFrom<AnyJwkMethod> for Ed25519VerificationKey2018
Deprecated verification method for the Ed25519Signature2018
suite.
impl TryFrom<AnyJwkMethod> for Ed25519VerificationKey2018
Deprecated verification method for the Ed25519Signature2018
suite.
Source§type Error = InvalidVerificationMethod
type Error = InvalidVerificationMethod
The type returned in the event of a conversion error.
Source§impl TryFrom<AnyJwkMethod> for Ed25519VerificationKey2020
Deprecated verification method for the Ed25519Signature2020
suite.
impl TryFrom<AnyJwkMethod> for Ed25519VerificationKey2020
Deprecated verification method for the Ed25519Signature2020
suite.
Source§type Error = InvalidVerificationMethod
type Error = InvalidVerificationMethod
The type returned in the event of a conversion error.
Source§impl TryFrom<AnyJwkMethod> for JsonWebKey2020
JsonWebKey2020
.
impl TryFrom<AnyJwkMethod> for JsonWebKey2020
JsonWebKey2020
.
Source§type Error = InvalidVerificationMethod
type Error = InvalidVerificationMethod
The type returned in the event of a conversion error.
Source§impl TryFrom<AnyJwkMethod> for RsaVerificationKey2018
Deprecated verification method for the RsaSignature2018
suite.
impl TryFrom<AnyJwkMethod> for RsaVerificationKey2018
Deprecated verification method for the RsaSignature2018
suite.
Source§type Error = InvalidVerificationMethod
type Error = InvalidVerificationMethod
The type returned in the event of a conversion error.
Source§impl TryFrom<AnyJwkMethod> for SolanaMethod2021
impl TryFrom<AnyJwkMethod> for SolanaMethod2021
Source§type Error = InvalidVerificationMethod
type Error = InvalidVerificationMethod
The type returned in the event of a conversion error.
Source§impl TryFrom<GenericVerificationMethod> for AnyJwkMethod
impl TryFrom<GenericVerificationMethod> for AnyJwkMethod
Source§type Error = InvalidVerificationMethod
type Error = InvalidVerificationMethod
The type returned in the event of a conversion error.
Source§impl TypedVerificationMethod for AnyJwkMethod
impl TypedVerificationMethod for AnyJwkMethod
fn expected_type() -> Option<ExpectedType>
fn type_match(ty: &str) -> bool
fn type_(&self) -> &str
Source§impl VerificationMethod for AnyJwkMethod
impl VerificationMethod for AnyJwkMethod
Auto Trait Implementations§
impl Freeze for AnyJwkMethod
impl RefUnwindSafe for AnyJwkMethod
impl Send for AnyJwkMethod
impl Sync for AnyJwkMethod
impl Unpin for AnyJwkMethod
impl UnwindSafe for AnyJwkMethod
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
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<M> MaybeJwkVerificationMethod for Mwhere
M: JwkVerificationMethod,
impl<M> MaybeJwkVerificationMethod for Mwhere
M: JwkVerificationMethod,
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
.