pub fn decode_with_decrypter_selector<'a, F>(
    input: impl AsRef<[u8]>,
    selector: F,
) -> Result<(JwtPayload, JweHeader), JoseError>
where
    F: Fn(&JweHeader) -> Result<Option<&'a dyn JweDecrypter>, JoseError>,
{
    DEFAULT_CONTEXT.decode_with_decrypter_selector(input, selector)
}
/// Return the JWT object decoded with a selected decrypting algorithm.
///
/// # Arguments
///
/// * `input` - a JWT string representation.
/// * `decrypter_selector` - a function for selecting the decrypting algorithm.
Return the JWT object decoded with a selected decrypting algorithm.
Return the JWT object decoded with a selected decrypting algorithm .
pub fn decode_with_decrypter_selector<'a, F>(
    input: impl AsRef<[u8]>,
    selector: F,
) -> Result<(JwtPayload, JweHeader), JoseError>
where
    F: Fn(&JweHeader) -> Result<Option<&'a dyn JweDecrypter>, JoseError>,
{
    DEFAULT_CONTEXT.decode_with_decrypter_selector(input, selector)
}
pub fn decode_with_decrypter_selector < ' a , F > ( input : impl AsRef < [ u8 ] > , selector : F , ) -> Result < ( JwtPayload , JweHeader ) , JoseError > where F : Fn ( & JweHeader ) -> Result < Option < & ' a dyn JweDecrypter > , JoseError > , { DEFAULT_CONTEXT . decode_with_decrypter_selector ( input , selector ) }
Return the JWT object decoded with a selected decrypting algorithm.
Return the JWT object decoded with a selected decrypting algorithm .
input
impl AsRef<[u8]>
selector
F
input
impl AsRef<[u8]>
selector
F