Reference documentation and code samples for the googleauth class Google::Auth::IDTokens::AggregateKeySource.
A key source that aggregates other key sources. This means it will
aggregate the keys provided by its constituent sources. Additionally,
when asked to refresh, it will refresh all its constituent sources.
Inherits
Object
Methods
#current_keys
defcurrent_keys()->Array<KeyInfo>
Return the current keys, without attempting to refresh.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# googleauth - Class Google::Auth::IDTokens::AggregateKeySource (v1.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.15.0 (latest)](/ruby/docs/reference/googleauth/latest/Google-Auth-IDTokens-AggregateKeySource)\n- [1.14.0](/ruby/docs/reference/googleauth/1.14.0/Google-Auth-IDTokens-AggregateKeySource)\n- [1.13.1](/ruby/docs/reference/googleauth/1.13.1/Google-Auth-IDTokens-AggregateKeySource)\n- [1.12.2](/ruby/docs/reference/googleauth/1.12.2/Google-Auth-IDTokens-AggregateKeySource) \nReference documentation and code samples for the googleauth class Google::Auth::IDTokens::AggregateKeySource.\n\nA key source that aggregates other key sources. This means it will\naggregate the keys provided by its constituent sources. Additionally,\nwhen asked to refresh, it will refresh all its constituent sources. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### #current_keys\n\n def current_keys() -\u003e Array\u003cKeyInfo\u003e\n\nReturn the current keys, without attempting to refresh. \n**Returns**\n\n- (Array\\\u003c[KeyInfo](./Google-Auth-IDTokens-KeyInfo)\\\u003e)\n\n### #initialize\n\n def initialize(sources) -\u003e AggregateKeySource\n\nCreate a key source that aggregates other key sources. \n**Parameter**\n\n- **sources** (Array\\\u003ckey source\\\u003e) --- The key sources to aggregate. \n**Returns**\n\n- ([AggregateKeySource](./Google-Auth-IDTokens-AggregateKeySource)) --- a new instance of AggregateKeySource\n\n### #refresh_keys\n\n def refresh_keys() -\u003e Array\u003cKeyInfo\u003e\n\nAttempt to refresh keys and return the new keys. \n**Returns**\n\n- (Array\\\u003c[KeyInfo](./Google-Auth-IDTokens-KeyInfo)\\\u003e) \n**Raises**\n\n- ([Google::Auth::IDTokens::KeySourceError](./Google-Auth-IDTokens-KeySourceError)) --- If key retrieval failed for any source."]]