Class: Google::Auth::IDTokens::X509CertHttpKeySource

Inherits:
HttpKeySource
  • Object
show all
Defined in:
lib/googleauth/id_tokens/key_sources.rb

Overview

A key source that downloads X509 certificates. Used by the legacy OAuth V1 public certs endpoint.

Constant Summary

Constants inherited from HttpKeySource

HttpKeySource::DEFAULT_RETRY_INTERVAL

Instance Attribute Summary

Attributes inherited from HttpKeySource

#current_keys, #uri

Instance Method Summary collapse

Methods inherited from HttpKeySource

#refresh_keys

Constructor Details

#initialize(uri, algorithm: "RS256", retry_interval: nil) ⇒ X509CertHttpKeySource

Create a key source that downloads X509 certificates.

Parameters:

  • uri (String, URI)

    The URI from which to download keys.

  • algorithm (String) (defaults to: "RS256")

    The algorithm to use for signature verification. Defaults to "RS256".

  • retry_interval (Integer, nil) (defaults to: nil)

    Override the retry interval in seconds. This is the minimum time between retries of failed key downloads.



306
307
308
309
# File 'lib/googleauth/id_tokens/key_sources.rb', line 306

def initialize uri, algorithm: "RS256", retry_interval: nil
  super uri, retry_interval: retry_interval
  @algorithm = algorithm
end