identity_jose::jws

Type Alias RecipientProcessingEncoder

Source
pub type RecipientProcessingEncoder<'payload, 'unprotected> = GeneralJwsEncoder<'payload, 'unprotected, RecipientProcessingState<'unprotected>>;
Expand description

A General JWS Encoder that is currently processing the latest Recipient.

Aliased Type§

struct RecipientProcessingEncoder<'payload, 'unprotected> { /* private fields */ }

Implementations§

Source§

impl<'payload, 'unprotected> RecipientProcessingEncoder<'payload, 'unprotected>

Source

pub fn signing_input(&self) -> &[u8]

The signing input to be signed for the recipient currently being processed. This has been computed according to the JWS Signing Input Formula using the protected header from the latest Recipient and the payload set in the GeneralJwsEncoder::new.

Source

pub fn set_signature( self, signature: &[u8], ) -> GeneralJwsEncoder<'payload, 'unprotected>

Set the signature computed in the manner defined for the algorithm present in the recipient’s protected header over the signing input.