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

Struct that holds a list of Google.Oauth2.Certificate structs with their expiration time algorithm and version

Link to this section Summary

Functions

Returns a GoogleCerts.Certificates from the provided json or raw elixir map

Returns true if expire is is less than the current UTC time.

Returns a GoogleCerts.Certificate for a given kid that is in certs

Link to this section Types

Specs

t() :: %GoogleCerts.Certificates{
  algorithm: String.t(),
  certs: [GoogleCerts.Certificate.t()],
  expire: DateTime.t(),
  version: integer()
}
Link to this type

t(certs, expire, algorithm, version)

View Source

Specs

t(certs, expire, algorithm, version) :: %GoogleCerts.Certificates{
  algorithm: algorithm,
  certs: certs,
  expire: expire,
  version: version
}

Link to this section Functions

Link to this function

add_cert(struct, kid, cert)

View Source

Specs

add_cert(t(), String.t(), map()) :: t()

Specs

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

Returns a GoogleCerts.Certificates from the provided json or raw elixir map

Specs

expired?(t()) :: boolean()

Returns true if expire is is less than the current UTC time.

Specs

find(t(), String.t()) :: GoogleCerts.Certificate.t() | nil

Returns a GoogleCerts.Certificate for a given kid that is in certs

Specs

new() :: t()
Link to this function

set_expiration(struct, expiration)

View Source

Specs

set_expiration(t(), DateTime.t()) :: t()
Link to this function

set_version(struct, version)

View Source

Specs

set_version(t(), integer()) :: t()