Class: Header

Header(headers)

Header class

A Univrse Header is simply an object of arbitrary key-value pairs. Headers can be found in the Envelope, Signature and Recipient objects.

Known header parameters include:

  • alg - Signature or encryption algorithm (Signature, Recipient)
  • crit - An array of critical headers (Envelope)
  • cty - Content type (Envelope)
  • iv - Initialisation vector (Recipient)
  • kid - Key identifier (Signature, Recipient)
  • proto - Protocol identifier (Envelope)
  • zip - Compression algorithm (Envelope)

Constructor

Instantiates a new Header instance with the given headers.

Parameters:
Name Type Description
headers Object
Source:

Classes

wrap

Methods

unwrap() → {Object}

Unwraps the Header instance and returns the headers object

Source:
Returns:
Type
Object