[[["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-04 UTC."],[],[],null,["# googleauth - Class Google::Auth::IDTokens::StaticKeySource (v1.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.15.0 (latest)](/ruby/docs/reference/googleauth/latest/Google-Auth-IDTokens-StaticKeySource)\n- [1.14.0](/ruby/docs/reference/googleauth/1.14.0/Google-Auth-IDTokens-StaticKeySource)\n- [1.13.1](/ruby/docs/reference/googleauth/1.13.1/Google-Auth-IDTokens-StaticKeySource)\n- [1.12.2](/ruby/docs/reference/googleauth/1.12.2/Google-Auth-IDTokens-StaticKeySource) \nReference documentation and code samples for the googleauth class Google::Auth::IDTokens::StaticKeySource.\n\nA key source that contains a static set of keys. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### .from_jwk\n\n def self.from_jwk(jwk) -\u003e StaticKeySource\n\nCreate a static key source containing a single key parsed from a\nsingle JWK, which may be given as either a hash or an unparsed\nJSON string. \n**Parameter**\n\n- **jwk** (Hash, String) --- The JWK specification. \n**Returns**\n\n- ([StaticKeySource](./Google-Auth-IDTokens-StaticKeySource))\n\n### .from_jwk_set\n\n def self.from_jwk_set(jwk_set) -\u003e StaticKeySource\n\nCreate a static key source containing multiple keys parsed from a\nJWK Set, which may be given as either a hash or an unparsed JSON\nstring. \n**Parameter**\n\n- **jwk_set** (Hash, String) --- The JWK Set specification. \n**Returns**\n\n- ([StaticKeySource](./Google-Auth-IDTokens-StaticKeySource))\n\n### #current_keys\n\n def current_keys() -\u003e Array\u003cKeyInfo\u003e\n\n**Aliases**\n\n- [#refresh_keys](./Google-Auth-IDTokens-StaticKeySource#Google__Auth__IDTokens__StaticKeySource_refresh_keys_instance_) \nReturn the current keys. Does not perform any refresh. \n**Returns**\n\n- (Array\\\u003c[KeyInfo](./Google-Auth-IDTokens-KeyInfo)\\\u003e)\n\n### #initialize\n\n def initialize(keys) -\u003e StaticKeySource\n\nCreate a static key source with the given keys. \n**Parameter**\n\n- **keys** (Array\\\u003c[KeyInfo](./Google-Auth-IDTokens-KeyInfo)\\\u003e) --- The keys \n**Returns**\n\n- ([StaticKeySource](./Google-Auth-IDTokens-StaticKeySource)) --- a new instance of StaticKeySource\n\n### #refresh_keys\n\n def refresh_keys() -\u003e Array\u003cKeyInfo\u003e\n\n**Alias Of** : [#current_keys](./Google-Auth-IDTokens-StaticKeySource#Google__Auth__IDTokens__StaticKeySource_current_keys_instance_) \nReturn the current keys. Does not perform any refresh. \n**Returns**\n\n- (Array\\\u003c[KeyInfo](./Google-Auth-IDTokens-KeyInfo)\\\u003e)"]]