Google Certificates v0.1.2 GoogleCerts.Certificates View Source
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
Link to this type
t()
View Sourcet() :: %GoogleCerts.Certificates{ algorithm: String.t(), certs: [GoogleCerts.Certificate.t()], expire: DateTime.t(), version: integer() }
Link to this type
t(certs, expire, algorithm, version)
View Sourcet(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 Sourceadd_cert(GoogleCerts.Certificates.t(), String.t(), map()) :: GoogleCerts.Certificates.t()
Link to this function
decode!(json)
View Sourcedecode!(String.t() | map()) :: GoogleCerts.Certificates.t() | no_return()
Returns a GoogleCerts.Certificates
from the provided json or raw elixir map
Link to this function
expired?(arg1)
View Sourceexpired?(GoogleCerts.Certificates.t()) :: boolean()
Returns true if expire
is is less than the current UTC time.
Link to this function
find(certificates, kid)
View Sourcefind(GoogleCerts.Certificates.t(), String.t()) :: GoogleCerts.Certificate.t()
Returns a GoogleCerts.Certificate
for a given kid that is in certs
Link to this function
set_expiration(struct, expiration)
View Sourceset_expiration(GoogleCerts.Certificates.t(), DateTime.t()) :: GoogleCerts.Certificates.t()
Link to this function
set_version(struct, version)
View Sourceset_version(GoogleCerts.Certificates.t(), integer()) :: GoogleCerts.Certificates.t()