pub struct Ticketer {}
Available on crate features
std
and aws-lc-rs
only.Expand description
A concrete, safe ticket creation mechanism.
Implementations§
Source§impl Ticketer
impl Ticketer
Sourcepub fn new() -> Result<Arc<dyn ProducesTickets>, Error>
pub fn new() -> Result<Arc<dyn ProducesTickets>, Error>
Make the recommended Ticketer
.
This produces tickets:
- where each lasts for at least 6 hours,
- with randomly generated keys, and
- where keys are rotated every 6 hours.
The Ticketer
uses the RFC 5077 §4 “Recommended Ticket Construction”,
using AES 256 for encryption and HMAC-SHA256 for ciphertext authentication.
Auto Trait Implementations§
impl Freeze for Ticketer
impl RefUnwindSafe for Ticketer
impl Send for Ticketer
impl Sync for Ticketer
impl Unpin for Ticketer
impl UnwindSafe for Ticketer
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