HTTPSign v0.1.0 HTTPSign.Signature

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %HTTPSign.Signature{
  algorithm: binary(),
  headers: list(),
  key_id: binary(),
  signature: binary()
}

Link to this section Functions

Link to this function new(key_id, algo, signature, headers \\ ["date"])
new(binary(), binary(), binary(), list()) :: t()

Create a new %Signature{} struct.

Example

iex> HTTPSign.Signature.new("rsa-key-1", "rsa-sha256", "abc123")
%HTTPSign.Signature{
  algorithm: "rsa-sha256",
  headers: ["date"],
  key_id: "rsa-key-1",
  signature: "abc123"
}