logo
pub fn decode_jws_parts(
    header_b64: &str,
    payload_enc: &[u8],
    signature_b64: &str
) -> Result<DecodedJWS, Error>
Expand description

Decode JWS parts (JOSE header, payload, and signature) into useful values. The payload argument is bytes since it may be unencoded if the b64:false header parameter is used; otherwise it must be a base64url-encoded string. Header and signature are always expected to be base64url-encoded. “crit” (critical) header parameters are checked and disallowed if unrecognized/unsupported.