mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-22 09:21:00 +00:00
Expose signature and Signing String
This commit is contained in:
parent
08be4047ef
commit
58871c67ac
2 changed files with 11 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "http-signature-normalization"
|
name = "http-signature-normalization"
|
||||||
description = "An HTTP Signatures library that leaves the signing to you"
|
description = "An HTTP Signatures library that leaves the signing to you"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
license-file = "LICENSE"
|
license-file = "LICENSE"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
@ -134,6 +134,16 @@ impl Unverified {
|
||||||
self.algorithm.as_ref()
|
self.algorithm.as_ref()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the signing string used to create the signature
|
||||||
|
pub fn signing_string(&self) -> &str {
|
||||||
|
&self.signing_string
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Get the signature itself
|
||||||
|
pub fn signature(&self) -> &str {
|
||||||
|
&self.signature
|
||||||
|
}
|
||||||
|
|
||||||
/// Verify the signature with the signature and the signing string
|
/// Verify the signature with the signature and the signing string
|
||||||
///
|
///
|
||||||
/// ```rust,ignore
|
/// ```rust,ignore
|
||||||
|
|
Loading…
Reference in a new issue