class Google::Auth::IDTokens::StaticKeySource
A key source that contains a static set of keys.
Attributes
Return the current keys. Does not perform any refresh.
@return [Array<KeyInfo>]
Return the current keys. Does not perform any refresh.
@return [Array<KeyInfo>]
Public Class Methods
Source
# File lib/googleauth/id_tokens/key_sources.rb, line 200 def from_jwk jwk new KeyInfo.from_jwk jwk end
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.
@param jwk [Hash,String] The JWK specification. @return [StaticKeySource]
Source
# File lib/googleauth/id_tokens/key_sources.rb, line 212 def from_jwk_set jwk_set new KeyInfo.from_jwk_set jwk_set end
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.
@param jwk_set [Hash,String] The JWK Set specification. @return [StaticKeySource]
Source
# File lib/googleauth/id_tokens/key_sources.rb, line 179 def initialize keys @current_keys = Array(keys) end
Create a static key source with the given keys.
@param keys [Array<KeyInfo>] The keys