class Auth0RS256JWTVerifier::JWKSetDownloader::JWKSet

Constants

ParseError

Public Class Methods

new(hash) click to toggle source
# File lib/auth0_rs256_jwt_verifier/jwk_set_downloader.rb, line 26
def initialize(hash)
  raise ParseError if hash["keys"].is_a?(Hash)
  @keys = hash["keys"].map { |key| JWK.new(key) }
end

Public Instance Methods

each() { |key| ... } click to toggle source
# File lib/auth0_rs256_jwt_verifier/jwk_set_downloader.rb, line 31
def each
  @keys.each { |key| yield key }
end
inspect() click to toggle source
# File lib/auth0_rs256_jwt_verifier/jwk_set_downloader.rb, line 35
def inspect
  "JWKSet(#{@keys.collect(&:inspect).join(", ")})"
end