pub struct DetachedJwsSignature {
pub jws: JwsString,
}Fields§
§jws: JwsStringImplementations§
Source§impl DetachedJwsSignature
impl DetachedJwsSignature
pub fn new(jws: JwsString) -> DetachedJwsSignature
Sourcepub fn decode(
&self,
message: &[u8],
) -> Result<(Vec<u8>, JwsSignature, Algorithm), ProofValidationError>
pub fn decode( &self, message: &[u8], ) -> Result<(Vec<u8>, JwsSignature, Algorithm), ProofValidationError>
Decodes the signature for the given message.
Returns the signing bytes, the signature bytes and the signature algorithm.
pub async fn sign_detached<A, S>( payload: &[u8], signer: S, key_id: Option<String>, algorithm_instance: <A as SignatureAlgorithmType>::Instance, ) -> Result<DetachedJwsSignature, SignatureError>
Trait Implementations§
Source§impl AsRef<str> for DetachedJwsSignature
impl AsRef<str> for DetachedJwsSignature
Source§impl Clone for DetachedJwsSignature
impl Clone for DetachedJwsSignature
Source§fn clone(&self) -> DetachedJwsSignature
fn clone(&self) -> DetachedJwsSignature
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 DetachedJwsSignature
impl Debug for DetachedJwsSignature
Source§impl<'de> Deserialize<'de> for DetachedJwsSignature
impl<'de> Deserialize<'de> for DetachedJwsSignature
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DetachedJwsSignature, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DetachedJwsSignature, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<I_, V_> LinkedData<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
impl<I_, V_> LinkedData<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
Source§impl<I_, V_> LinkedDataDeserializePredicateObjects<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataDeserializePredicateObjects<I_, V_>,
I_: Interpretation + IriInterpretation<<V_ as IriVocabulary>::Iri> + ReverseIriInterpretation<Iri = <V_ as IriVocabulary>::Iri>,
V_: Vocabulary,
impl<I_, V_> LinkedDataDeserializePredicateObjects<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataDeserializePredicateObjects<I_, V_>,
I_: Interpretation + IriInterpretation<<V_ as IriVocabulary>::Iri> + ReverseIriInterpretation<Iri = <V_ as IriVocabulary>::Iri>,
V_: Vocabulary,
fn deserialize_objects_in<'de_, D_>(
vocabulary: &V_,
interpretation: &I_,
dataset: &D_,
graph: Option<&<I_ as Interpretation>::Resource>,
objects: impl IntoIterator<Item = &'de_ <I_ as Interpretation>::Resource>,
context: Context<'_, I_>,
) -> Result<DetachedJwsSignature, FromLinkedDataError>where
<I_ as Interpretation>::Resource: 'de_,
D_: PatternMatchingDataset<Resource = <I_ as Interpretation>::Resource>,
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 DetachedJwsSignaturewhere
JwsString: LinkedDataDeserializePredicateObjects<I_, V_>,
I_: Interpretation + IriInterpretation<<V_ as IriVocabulary>::Iri> + ReverseIriInterpretation<Iri = <V_ as IriVocabulary>::Iri>,
V_: Vocabulary,
impl<I_, V_> LinkedDataDeserializeSubject<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataDeserializePredicateObjects<I_, V_>,
I_: Interpretation + IriInterpretation<<V_ as IriVocabulary>::Iri> + ReverseIriInterpretation<Iri = <V_ as IriVocabulary>::Iri>,
V_: Vocabulary,
fn deserialize_subject_in<D_>( vocabulary_: &V_, interpretation_: &I_, dataset_: &D_, graph_: Option<&<I_ as Interpretation>::Resource>, resource_: &<I_ as Interpretation>::Resource, context_: Context<'_, I_>, ) -> Result<DetachedJwsSignature, FromLinkedDataError>
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 DetachedJwsSignaturewhere
JwsString: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
impl<I_, V_> LinkedDataGraph<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
fn visit_graph<S_>(
&self,
visitor: S_,
) -> Result<<S_ as GraphVisitor<I_, V_>>::Ok, <S_ as GraphVisitor<I_, V_>>::Error>where
S_: GraphVisitor<I_, V_>,
Source§impl<I_, V_> LinkedDataPredicateObjects<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
impl<I_, V_> LinkedDataPredicateObjects<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
fn visit_objects<S_>(
&self,
visitor: S_,
) -> Result<<S_ as PredicateObjectsVisitor<I_, V_>>::Ok, <S_ as PredicateObjectsVisitor<I_, V_>>::Error>where
S_: PredicateObjectsVisitor<I_, V_>,
Source§impl<I_, V_> LinkedDataResource<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
impl<I_, V_> LinkedDataResource<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
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 DetachedJwsSignaturewhere
JwsString: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
impl<I_, V_> LinkedDataSubject<I_, V_> for DetachedJwsSignaturewhere
JwsString: LinkedDataPredicateObjects<I_, V_>,
I_: Interpretation,
V_: Vocabulary + IriVocabularyMut,
fn visit_subject<S_>(
&self,
visitor: S_,
) -> Result<<S_ as SubjectVisitor<I_, V_>>::Ok, <S_ as SubjectVisitor<I_, V_>>::Error>where
S_: SubjectVisitor<I_, V_>,
Source§impl Serialize for DetachedJwsSignature
impl Serialize for DetachedJwsSignature
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DetachedJwsSignature
impl RefUnwindSafe for DetachedJwsSignature
impl Send for DetachedJwsSignature
impl Sync for DetachedJwsSignature
impl Unpin for DetachedJwsSignature
impl UnwindSafe for DetachedJwsSignature
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<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.