class JWT::Decode
def set_key
def set_key @key = find_key(&@keyfinder) if @keyfinder if @options[:jwks] @key = ::JWT::JWK::KeyFinder.new( jwks: @options[:jwks], allow_nil_kid: @options[:allow_nil_kid], key_fields: @options[:key_fields] ).call(token) end return unless (x5c_options = @options[:x5c]) @key = X5cKeyFinder.new(x5c_options[:root_certificates], x5c_options[:crls]).from(token.header['x5c']) end