Class: AppleID::JWKS

Inherits:
JSON::JWK::Set
  • Object
show all
Defined in:
lib/apple_id/jwks.rb

Class Method Summary collapse

Class Method Details

.cacheObject



6
7
8
# File 'lib/apple_id/jwks.rb', line 6

def self.cache
  JSON::JWK::Set::Fetcher.cache
end

.cache=(cache) ⇒ Object



3
4
5
# File 'lib/apple_id/jwks.rb', line 3

def self.cache=(cache)
  JSON::JWK::Set::Fetcher.cache = cache
end

.fetch(kid, options = {}) ⇒ Object



10
11
12
# File 'lib/apple_id/jwks.rb', line 10

def self.fetch(kid, options = {})
  JSON::JWK::Set::Fetcher.fetch JWKS_URI, kid: kid, **options
end