pub struct RemoteJwksDecoderBuilder { /* private fields */ }
Expand description
Builder for RemoteJwksDecoder
.
Implementations§
Source§impl RemoteJwksDecoderBuilder
impl RemoteJwksDecoderBuilder
Sourcepub fn config(&mut self, value: RemoteJwksDecoderConfig) -> &mut Self
pub fn config(&mut self, value: RemoteJwksDecoderConfig) -> &mut Self
The configuration for the decoder
Sourcepub fn keys_cache(
&mut self,
value: Arc<DashMap<String, DecodingKey>>,
) -> &mut Self
pub fn keys_cache( &mut self, value: Arc<DashMap<String, DecodingKey>>, ) -> &mut Self
The cache for the JWKS keys
Sourcepub fn validation(&mut self, value: Validation) -> &mut Self
pub fn validation(&mut self, value: Validation) -> &mut Self
The validation settings for the JWT tokens
Sourcepub fn client(&mut self, value: Client) -> &mut Self
pub fn client(&mut self, value: Client) -> &mut Self
The HTTP client to use for fetching the JWKS
Sourcepub fn initialized(&mut self, value: Arc<Notify>) -> &mut Self
pub fn initialized(&mut self, value: Arc<Notify>) -> &mut Self
The initialized flag
Sourcepub fn build(&self) -> Result<RemoteJwksDecoder, RemoteJwksDecoderBuilderError>
pub fn build(&self) -> Result<RemoteJwksDecoder, RemoteJwksDecoderBuilderError>
Trait Implementations§
Source§impl Clone for RemoteJwksDecoderBuilder
impl Clone for RemoteJwksDecoderBuilder
Source§fn clone(&self) -> RemoteJwksDecoderBuilder
fn clone(&self) -> RemoteJwksDecoderBuilder
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 RemoteJwksDecoderBuilder
impl !RefUnwindSafe for RemoteJwksDecoderBuilder
impl Send for RemoteJwksDecoderBuilder
impl Sync for RemoteJwksDecoderBuilder
impl Unpin for RemoteJwksDecoderBuilder
impl !UnwindSafe for RemoteJwksDecoderBuilder
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