pub struct PublicKeyCache { /* private fields */ }Expand description
Public key cache with automatic refresh and retry logic.
Handles fetching and caching of Firebase’s public keys used for JWT verification. Keys are automatically refreshed based on the configured cache duration.
Implementations§
Source§impl PublicKeyCache
impl PublicKeyCache
Sourcepub fn new(cache_duration_seconds: u64) -> Result<Self, FirebaseAuthError>
pub fn new(cache_duration_seconds: u64) -> Result<Self, FirebaseAuthError>
Sourcepub async fn get_key(&self, kid: &str) -> Result<DecodingKey, FirebaseAuthError>
pub async fn get_key(&self, kid: &str) -> Result<DecodingKey, FirebaseAuthError>
Trait Implementations§
Source§impl Clone for PublicKeyCache
impl Clone for PublicKeyCache
Source§fn clone(&self) -> PublicKeyCache
fn clone(&self) -> PublicKeyCache
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PublicKeyCache
impl !RefUnwindSafe for PublicKeyCache
impl Send for PublicKeyCache
impl Sync for PublicKeyCache
impl Unpin for PublicKeyCache
impl !UnwindSafe for PublicKeyCache
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