Function josekit::jwt::decode_with_decrypter_in_jwk_set[][src]

pub fn decode_with_decrypter_in_jwk_set<F>(
    input: impl AsRef<[u8]>,
    jwk_set: &JwkSet,
    selector: F
) -> Result<(JwtPayload, JweHeader), JoseError> where
    F: Fn(&Jwk) -> Result<Option<&dyn JweDecrypter>, JoseError>, 
Expand description

Return the JWT object decoded by using a JWK set.

Arguments

  • input - a JWT string representation.
  • jwk_set - a JWK set.
  • selector - a function for selecting the decrypting algorithm.