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.



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

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