pub fn decode_with_verifier(
        &self,
        input: impl AsRef<[u8]>,
        verifier: &dyn JwsVerifier,
    ) -> Result<(JwtPayload, JwsHeader), JoseError> {
        self.decode_with_verifier_selector(input, |_header| Ok(Some(verifier)))
    }
/// Return the JWT object decoded by the selected verifier.
///
/// # Arguments
///
/// * `verifier` - a verifier of the signing algorithm.
/// * `input` - a JWT string representation.
Return the JWT object decoded by the selected verifier.
Return the JWT object decoded by the selected verifier .
pub fn decode_with_verifier(
        &self,
        input: impl AsRef<[u8]>,
        verifier: &dyn JwsVerifier,
    ) -> Result<(JwtPayload, JwsHeader), JoseError> {
        self.decode_with_verifier_selector(input, |_header| Ok(Some(verifier)))
    }
pub fn decode_with_verifier ( & self , input : impl AsRef < [ u8 ] > , verifier : & dyn JwsVerifier , ) -> Result < ( JwtPayload , JwsHeader ) , JoseError > { self . decode_with_verifier_selector ( input , | _header | Ok ( Some ( verifier ) ) ) }
Return the JWT object decoded by the selected verifier.
Return the JWT object decoded by the selected verifier .
&self
input
impl AsRef<[u8]>
verifier
&dyn JwsVerifier
&self
input
impl AsRef<[u8]>
verifier
&dyn JwsVerifier