Jose.Headertype t = {alg : Jwa.alg;jwk : Jwk.public Jwk.t option;kid : string option;x5t : string option;x5t256 : string option;typ : string option;cty : string option;enc : Jwa.enc option;extra : (string * Yojson.Safe.t) list;}The header has the following properties:
alg Jwa.algjwk JSON Web Keykid Key ID - We currently always expect this to be there, this can change in the futurex5t X.509 Certificate SHA-1 Thumbprint -x5t#S256 X.509 Certificate SHA-256 Thumbprinttyp Typecty Content Type Not implementedval make_header :
?typ:string ->
?alg:Jwa.alg ->
?enc:Jwa.enc ->
?extra:(string * Yojson.Safe.t) list ->
?jwk_header:bool ->
Jwk.priv Jwk.t ->
tmake_header typ alg enc jwk if alg is not provided it will be derived from jwk. jwk_header decides if the jwk should be put in the header.
val of_string : string -> (t, [> `Msg of string ]) Stdlib.resultval to_string : t -> stringval to_json : t -> Yojson.Safe.tval of_json : Yojson.Safe.t -> (t, [> `Msg of string ]) Stdlib.result