View Source GoogleCerts.Certificate (Google Certificates v1.0.0)

Struct to associate a kid to a certificate map.

kid is the id and cert can either be a map with a pem or a JWK map

version 1 cert is %{"pem" => "-----BEGIN CERTIFICATE----- ..."} version 3 cert is %{"kid" => "53c66aab5...". "e" => "AQAB", ...}

Link to this section Summary

Link to this section Types

Specs

t() :: %GoogleCerts.Certificate{cert: map(), kid: String.t()}

Specs

t(kid, cert) :: %GoogleCerts.Certificate{cert: cert, kid: kid}

Link to this section Functions

Specs

decode!(map()) :: t() | no_return()