Chromium Code Reviews| Index: net/cert/jwk_serializer.h |
| diff --git a/net/cert/jwk_serializer.h b/net/cert/jwk_serializer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9182f1c07b4b985f486f51b1075c4502e20d1132 |
| --- /dev/null |
| +++ b/net/cert/jwk_serializer.h |
| @@ -0,0 +1,30 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_CERT_JWK_SERIALIZER_H_ |
| +#define NET_CERT_JWK_SERIALIZER_H_ |
| + |
| +#include "base/strings/string_piece.h" |
| +#include "net/base/net_export.h" |
| + |
| +namespace base { |
| +class DictionaryValue; |
| +} |
| + |
| +namespace net { |
| + |
| +namespace JwkSerializer { |
| + |
| +// Converts a subject public key info from DER to JWK. |
| +// See http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-13 for |
| +// the output format. |
| +NET_EXPORT_PRIVATE bool ConvertSPKIFromDERToJWK( |
|
Ryan Sleevi
2013/08/06 21:59:42
Non-normatively, http://google-styleguide.googleco
juanlang
2013/08/06 23:32:17
Thanks. Done.
|
| + const base::StringPiece& spki_der, |
| + base::DictionaryValue* public_key_jwk); |
| + |
| +} // namespace JwkSerializer |
| + |
| +} // namespace net |
| + |
| +#endif // NET_CERT_JWK_SERIALIZER_H_ |