pub struct CatOptions {
pub keys: HashMap<String, Vec<u8>>,
pub expect_cwt_tag: bool,
}Expand description
Configuration options for the CAT validator/generator.
Fields§
§keys: HashMap<String, Vec<u8>>Mapping of key IDs to their key material.
Each key is identified by a string ID and consists of raw bytes. For HMAC-SHA256, keys should be at least 32 bytes.
expect_cwt_tag: boolWhether to expect tokens to have a CWT tag.
CWT (CBOR Web Token) tags wrap the COSE_Mac0 structure with tag 61. Set this to true for compatibility with most CAT implementations.
Trait Implementations§
Source§impl Clone for CatOptions
impl Clone for CatOptions
Source§fn clone(&self) -> CatOptions
fn clone(&self) -> CatOptions
Returns a copy 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 CatOptions
impl Debug for CatOptions
Auto Trait Implementations§
impl Freeze for CatOptions
impl RefUnwindSafe for CatOptions
impl Send for CatOptions
impl Sync for CatOptions
impl Unpin for CatOptions
impl UnwindSafe for CatOptions
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