Struct http_sig::SimpleKeyProvider
source ·
[−]pub struct SimpleKeyProvider { /* fields omitted */ }
Expand description
Implementation of a simple key store.
Can store multiple keys with the same Key ID but different algorithms. If no algorithm is specified in the request, the first key added for that Key ID will be used.
Implementations
pub fn new<I, S, K>(key_iter: I) -> Self where
I: IntoIterator<Item = (S, K)>,
S: Into<String>,
K: Into<Arc<dyn HttpSignatureVerify>>,
pub fn new<I, S, K>(key_iter: I) -> Self where
I: IntoIterator<Item = (S, K)>,
S: Into<String>,
K: Into<Arc<dyn HttpSignatureVerify>>,
Initializes the key store from a list of key IDs and signature algorithms.
Adds a key to the key store
Removes all keys with the specified Key ID from the key store
Trait Implementations
Returns the “default value” for a type. Read more
Given the name of an algorithm (eg. hmac-sha256
) and the key ID, return a set
of possible keys and algorithms. Returns an empty Vec if no appropriate key/algorithm
combination could be found. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SimpleKeyProvider
impl Send for SimpleKeyProvider
impl Sync for SimpleKeyProvider
impl Unpin for SimpleKeyProvider
impl !UnwindSafe for SimpleKeyProvider
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more