Class: Google::Auth::IDTokens::JwkHttpKeySource

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

Overview

A key source that downloads a JWK set.

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, retry_interval: nil) ⇒ JwkHttpKeySource

Create a key source that downloads a JWT Set.

Parameters:

  • uri (String, URI)

    The URI from which to download keys.

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

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



336
337
338
# File 'lib/googleauth/id_tokens/key_sources.rb', line 336

def initialize uri, retry_interval: nil
  super uri, retry_interval: retry_interval
end