class Google::Auth::IDTokens::JwkHttpKeySource

A key source that downloads a JWK set.

Public Class Methods

new(uri, retry_interval: nil) click to toggle source

Create a key source that downloads a JWT Set.

@param uri [String,URI] The URI from which to download keys. @param retry_interval [Integer,nil] Override the retry interval in

seconds. This is the minimum time between retries of failed key
downloads.
# File lib/googleauth/id_tokens/key_sources.rb, line 336
def initialize uri, retry_interval: nil
  super uri, retry_interval: retry_interval
end

Protected Instance Methods

interpret_json(data) click to toggle source
# File lib/googleauth/id_tokens/key_sources.rb, line 342
def interpret_json data
  KeyInfo.from_jwk_set data
end