class Google::Auth::IDTokens::X509CertHttpKeySource
def interpret_json data
-
(Google::Auth::IDTokens::KeySourceError)- If X509 certificates cannot be parsed
Returns:
-
(Array- Array of key info objects)
Parameters:
-
data(Hash) -- The JSON data containing certificate strings
def interpret_json data data.map do |id, cert_str| key = OpenSSL::X509::Certificate.new(cert_str).public_key KeyInfo.new id: id, key: key, algorithm: @algorithm end rescue OpenSSL::X509::CertificateError raise KeySourceError, "Unable to parse X509 certificates" end