pub fn split_encoded_parts(data: &[u8]) -> Result<CompactSerializedParts<'_>>
Expand description

Split the parts of a JWS Compact Serialization message.

A JWS Compact Serialization message contains three base64-url encoded parts separated by period ‘.’ characters:

  • header
  • payload
  • signature

This function splits a byte slice into these three parts.