pub struct VerifyTokenOptions<'a> {
pub jwt: &'a str,
pub http_signature_thumbprint: &'a str,
pub resource: &'a str,
pub accept: &'a [TokenKind],
pub now: i64,
pub clock_tolerance: i64,
}Expand description
What verify_token checks a token against. Build one with
VerifyTokenOptions::new.
Fields§
§jwt: &'a strThe token, as the jwt parameter of Signature-Key carried it.
http_signature_thumbprint: &'a strThe thumbprint of the key that signed the HTTP request.
resource: &'a strThis verifier’s own server identifier: a person or auth token’s aud.
accept: &'a [TokenKind]The kinds this call site accepts. A person token is identity, so a
resource authorizing a request accepts only TokenKind::Auth.
now: i64Seconds since the epoch.
clock_tolerance: i64How far ahead of now a token’s iat may be.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for VerifyTokenOptions<'a>
impl<'a> Clone for VerifyTokenOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for VerifyTokenOptions<'a>
impl<'a> RefUnwindSafe for VerifyTokenOptions<'a>
impl<'a> Send for VerifyTokenOptions<'a>
impl<'a> Sync for VerifyTokenOptions<'a>
impl<'a> Unpin for VerifyTokenOptions<'a>
impl<'a> UnsafeUnpin for VerifyTokenOptions<'a>
impl<'a> UnwindSafe for VerifyTokenOptions<'a>
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