googleauth - Class Google::Auth::IDTokens::HttpKeySource (v1.15.1)

Reference documentation and code samples for the googleauth class Google::Auth::IDTokens::HttpKeySource.

A base key source that downloads keys from a URI. Subclasses should override #interpret_json to parse the response.

Inherits

  • Object

Methods

#current_keys

defcurrent_keys()->Array<KeyInfo>

Return the current keys, without attempting to re-download.

Returns

#initialize

definitialize(uri,retry_interval:nil)->HttpKeySource

Create an HTTP key source.

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.
Returns

#refresh_keys

defrefresh_keys()->Array<KeyInfo>

Attempt to re-download keys (if the retry interval has expired) and return the new keys.

Returns
Raises

#uri

defuri()->Array<KeyInfo>

The URI from which to download keys.

Returns

Constants

DEFAULT_RETRY_INTERVAL

value: 3600
The default interval between retries in seconds (3600s = 1hr).

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.