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

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

A key source that contains a static set of keys.

Inherits

  • Object

Methods

.from_jwk

defself.from_jwk(jwk)->StaticKeySource

Create a static key source containing a single key parsed from asingle JWK, which may be given as either a hash or an unparsedJSON string.

Parameter
  • jwk (Hash, String) — The JWK specification.

.from_jwk_set

defself.from_jwk_set(jwk_set)->StaticKeySource

Create a static key source containing multiple keys parsed from aJWK Set, which may be given as either a hash or an unparsed JSONstring.

Parameter
  • jwk_set (Hash, String) — The JWK Set specification.
Returns

#current_keys

defcurrent_keys()->Array<KeyInfo>

Return the current keys. Does not perform any refresh.

Returns

#initialize

definitialize(keys)->StaticKeySource

Create a static key source with the given keys.

Parameter
Returns

#refresh_keys

defrefresh_keys()->Array<KeyInfo>
Alias Of:#current_keys

Return the current keys. Does not perform any refresh.

Returns

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

Last updated 2025-10-30 UTC.