Acmex v0.1.2 Acmex.Resource.Challenge View Source

This structure represents a challenge to prove control of an identifier.

Link to this section Summary

Functions

Gets the key authorization from a challenge and JWK.

Gets the response from a challenge.

Builds a challenge struct.

Link to this section Types

Link to this type

dns_response()

View Source
dns_response() :: %{
  key_authorization: String.t(),
  record_name: String.t(),
  record_type: String.t()
}
Link to this type

http_response()

View Source
http_response() :: %{
  content_type: String.t(),
  filename: String.t(),
  key_authorization: String.t()
}
Link to this type

t()

View Source
t() :: %Acmex.Resource.Challenge{
  status: String.t(),
  token: String.t(),
  type: String.t(),
  url: String.t()
}

Link to this section Functions

Link to this function

get_key_authorization(challenge, jwk)

View Source
get_key_authorization(t(), tuple()) :: {:ok, String.t()}

Gets the key authorization from a challenge and JWK.

Link to this function

get_response(challenge, jwk)

View Source
get_response(t(), tuple()) :: {:ok, dns_response()} | {:ok, http_response()}

Gets the response from a challenge.

Link to this function

new(challenge)

View Source
new(map()) :: t()

Builds a challenge struct.