Module Signature.Params

Signature parameters per RFC 9421 Section 2.3.

type t

Signature parameters.

val empty : t

Empty parameters.

val created : Ptime.t -> t -> t

created time params sets the creation timestamp.

val expires : Ptime.t -> t -> t

expires time params sets the expiration timestamp.

val nonce : string -> t -> t

nonce value params sets a unique nonce.

val alg : Algorithm.t -> t -> t

alg algorithm params sets the algorithm identifier.

val keyid : string -> t -> t

keyid id params sets the key identifier.

val tag : string -> t -> t

tag value params sets an application-specific tag.

val get_created : t -> Ptime.t option
val get_expires : t -> Ptime.t option
val get_nonce : t -> string option
val get_alg : t -> Algorithm.t option
val get_keyid : t -> string option
val get_tag : t -> string option