pub struct EntityValidator { /* private fields */ }Expand description
Token validator for entity-signed tokens.
Plugs into the existing ValidatorChain alongside CpskValidator.
Token format: “ent_<base64url(msgpack(entity_id + timestamp + signature))>”
Implementations§
Source§impl EntityValidator
impl EntityValidator
Sourcepub fn new(store: Arc<dyn EntityStore>) -> Self
pub fn new(store: Arc<dyn EntityStore>) -> Self
Create a new entity validator
Sourcepub fn with_max_token_age(self, seconds: u64) -> Self
pub fn with_max_token_age(self, seconds: u64) -> Self
Set maximum token age (tokens older than this are rejected)
Trait Implementations§
Source§impl TokenValidator for EntityValidator
impl TokenValidator for EntityValidator
Auto Trait Implementations§
impl Freeze for EntityValidator
impl !RefUnwindSafe for EntityValidator
impl Send for EntityValidator
impl Sync for EntityValidator
impl Unpin for EntityValidator
impl UnsafeUnpin for EntityValidator
impl !UnwindSafe for EntityValidator
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