class JWT::JWK::RSA

def jwk_attributes(jwk_data, *attributes)

def jwk_attributes(jwk_data, *attributes)
  attributes.each_with_object({}) do |attribute, hash|
    value = jwk_data[attribute] || jwk_data[attribute.to_s]
    value = yield(value) if block_given?
    hash[attribute] = value
  end
end