Skip to content

Way to take owned payload from Jwe? #51

Description

@dcormier

For cases where the payload of a Jwe is not JSON and the raw payload is needed for additional processing, it would be nice if there were a way to take the owned payload from a Jwe instance. Perhaps something like:

/// Turns this [`Jwe`] into an owned header and payload.
pub fn into_parts(self) -> (JweProtectedHeader, Vec<u8>) {
    (self.header, self.payload)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions