1.17.8 (latest) 1.17.7 1.16.2 1.15.1 1.14.0 1.13.1 1.12.2 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

```ruby
def current_keys() -> Array<KeyInfo>
```
Return the current keys, without attempting to refresh.
**Returns**

- (Array\<[KeyInfo](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-IDTokens-KeyInfo.md.txt)\>)

### #initialize

```ruby
def initialize(sources) -> AggregateKeySource
```
Create a key source that aggregates other key sources.
**Parameter**

- **sources** (Array\<key source\>) --- The key sources to aggregate.
**Returns**

- ([AggregateKeySource](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-IDTokens-AggregateKeySource.md.txt)) --- a new instance of AggregateKeySource

### #refresh_keys

```ruby
def refresh_keys() -> Array<KeyInfo>
```
Attempt to refresh keys and return the new keys.
**Returns**

- (Array\<[KeyInfo](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-IDTokens-KeyInfo.md.txt)\>)
**Raises**

- ([Google::Auth::IDTokens::KeySourceError](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-IDTokens-KeySourceError.md.txt)) --- If key retrieval failed for any source.