[−][src]Struct http_sig::SimpleKeyProvider
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.
Methods
impl SimpleKeyProvider
[src]
pub fn new<I, S, K>(key_iter: I) -> Self where
I: IntoIterator<Item = (S, K)>,
S: Into<String>,
K: Into<Arc<dyn HttpSignatureVerify>>,
[src]
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.
pub fn add(&mut self, key_id: &str, key: Arc<dyn HttpSignatureVerify>)
[src]
Adds a key to the key store
pub fn clear(&mut self)
[src]
Clears all keys from the key store
pub fn remove_all(&mut self, key_id: &str)
[src]
Removes all keys with the specified Key ID from the key store
Trait Implementations
impl Clone for SimpleKeyProvider
[src]
fn clone(&self) -> SimpleKeyProvider
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SimpleKeyProvider
[src]
impl Default for SimpleKeyProvider
[src]
fn default() -> SimpleKeyProvider
[src]
impl KeyProvider for SimpleKeyProvider
[src]
fn provide_keys(&self, key_id: &str) -> Vec<Arc<dyn HttpSignatureVerify>>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,