Class: HoninClient::JwksCache::Static

Inherits:
Object
  • Object
show all
Defined in:
lib/honin/client/jwks_cache.rb

Overview

Wraps a static JWK set — useful for self-hosted instances with a known public key, or for testing without a live JWKS endpoint.

Instance Method Summary collapse

Constructor Details

#initialize(jwk_set) ⇒ Static

Returns a new instance of Static.



15
16
17
# File 'lib/honin/client/jwks_cache.rb', line 15

def initialize(jwk_set)
  @jwk_set = coerce(jwk_set)
end

Instance Method Details

#fetchObject



19
# File 'lib/honin/client/jwks_cache.rb', line 19

def fetch = @jwk_set

#refresh!Object



20
# File 'lib/honin/client/jwks_cache.rb', line 20

def refresh! = @jwk_set