Bug 25198: Turn KeyFormat into an enum
authorMark Watson <watsonm@netflix.com>
Thu, 30 Oct 2014 15:57:20 -0700
changeset 273 c837a411bbb3
parent 272 59c5870bf638
child 274 859e993ccd8b
Bug 25198: Turn KeyFormat into an enum
spec/Overview-WebCryptoAPI.xml
spec/Overview.html
--- a/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 15:51:44 2014 -0700
+++ b/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 15:57:20 2014 -0700
@@ -1247,7 +1247,7 @@
       <div id="subtlecrypto-interface" class="section">
         <h2>SubtleCrypto interface</h2>
         <x:codeblock language="idl">
-typedef DOMString <a href="#dfn-KeyFormat"><code>KeyFormat</code></a>;
+enum <a href="#dfn-KeyFormat"><code>KeyFormat</code></a> { "raw", "spki", "pkcs8", "jwk" };
 
 [Exposed=(Window,Worker)]
 interface <dfn id="dfn-SubtleCrypto">SubtleCrypto</dfn> {
--- a/spec/Overview.html	Thu Oct 30 15:51:44 2014 -0700
+++ b/spec/Overview.html	Thu Oct 30 15:57:20 2014 -0700
@@ -1248,7 +1248,7 @@
       <div id="subtlecrypto-interface" class="section">
         <h2>14. SubtleCrypto interface</h2>
         <div class="block"><div class="blockTitleDiv"><span class="blockTitle">IDL</span></div><div class="blockContent"><pre class="code"><code class="idl-code">
-typedef DOMString <a href="#dfn-KeyFormat"><code>KeyFormat</code></a>;
+enum <a href="#dfn-KeyFormat"><code>KeyFormat</code></a> { "raw", "spki", "pkcs8", "jwk" };
 
 [Exposed=(Window,Worker)]
 interface <dfn id="dfn-SubtleCrypto">SubtleCrypto</dfn> {