googleauth - Class Google::Auth::IDTokens::StaticKeySource (v1.15.1) Stay organized with collections Save and categorize content based on your preferences.
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)->StaticKeySourceCreate a static key source containing a single key parsed from asingle JWK, which may be given as either a hash or an unparsedJSON string.
- jwk (Hash, String) — The JWK specification.
.from_jwk_set
defself.from_jwk_set(jwk_set)->StaticKeySourceCreate a static key source containing multiple keys parsed from aJWK Set, which may be given as either a hash or an unparsed JSONstring.
- jwk_set (Hash, String) — The JWK Set specification.
#current_keys
defcurrent_keys()->Array<KeyInfo>Return the current keys. Does not perform any refresh.
- (Array<KeyInfo>)
#initialize
definitialize(keys)->StaticKeySourceCreate a static key source with the given keys.
- keys (Array<KeyInfo>) — The keys
- (StaticKeySource) — a new instance of StaticKeySource
#refresh_keys
defrefresh_keys()->Array<KeyInfo>Return the current keys. Does not perform any refresh.
- (Array<KeyInfo>)
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.