1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef NET_CERT_JWK_SERIALIZER_H_
6 #define NET_CERT_JWK_SERIALIZER_H_
8 #include "base/strings/string_piece.h"
9 #include "net/base/net_export.h"
12 class DictionaryValue
;
17 namespace JwkSerializer
{
19 // Converts a subject public key info from DER to JWK.
20 // See http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-17 for
22 NET_EXPORT_PRIVATE
bool ConvertSpkiFromDerToJwk(
23 const base::StringPiece
& spki_der
,
24 base::DictionaryValue
* public_key_jwk
);
26 } // namespace JwkSerializer
30 #endif // NET_CERT_JWK_SERIALIZER_H_