pub enum NonceMode {
Disabled,
RequireEqual {
expected_nonce: String,
},
Hmac {
secret: SecretBox<[u8]>,
max_age_seconds: i64,
bind_htu_htm: bool,
bind_jkt: bool,
bind_client: bool,
},
}Variants§
Disabled
RequireEqual
Require exact equality against expected_nonce
Hmac
Stateless HMAC-based nonces: encode ts+rand+ctx and MAC it
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NonceMode
impl RefUnwindSafe for NonceMode
impl Send for NonceMode
impl Sync for NonceMode
impl Unpin for NonceMode
impl UnwindSafe for NonceMode
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