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
def current_keys() -> Array<KeyInfo>
Return the current keys, without attempting to refresh.
- (Array<KeyInfo>)
#initialize
def initialize(sources) -> AggregateKeySource
Create a key source that aggregates other key sources.
- sources (Array<key source>) — The key sources to aggregate.
- (AggregateKeySource) — a new instance of AggregateKeySource
#refresh_keys
def refresh_keys() -> Array<KeyInfo>
Attempt to refresh keys and return the new keys.
- (Array<KeyInfo>)
- (KeySourceError) — if key retrieval failed.