Class: HoninClient::JwksCache::Static
- Inherits:
-
Object
- Object
- HoninClient::JwksCache::Static
- 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
- #fetch ⇒ Object
-
#initialize(jwk_set) ⇒ Static
constructor
A new instance of Static.
- #refresh! ⇒ Object
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
#fetch ⇒ Object
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 |