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

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

def self.from_jwk(jwk) -> StaticKeySource

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

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

.from_jwk_set

def self.from_jwk_set(jwk_set) -> StaticKeySource

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

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

#current_keys

def current_keys() -> Array<KeyInfo>
Aliases

Return the current keys. Does not perform any refresh.

Returns

#initialize

def initialize(keys) -> StaticKeySource

Create a static key source with the given keys.

Parameter
  • keys (Array<KeyInfo>) — The keys
Returns

#refresh_keys

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

Return the current keys. Does not perform any refresh.

Returns