Bug 25198: Turn KeyUsage into an enum
authorMark Watson <watsonm@netflix.com>
Thu, 30 Oct 2014 16:00:21 -0700
changeset 275 c0b3b769b9df
parent 274 859e993ccd8b
child 276 be842bc4f511
Bug 25198: Turn KeyUsage into an enum
spec/Overview-WebCryptoAPI.xml
spec/Overview.html
--- a/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 15:59:14 2014 -0700
+++ b/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 16:00:21 2014 -0700
@@ -1085,7 +1085,7 @@
         <x:codeblock language="idl">
 enum <a href="#dfn-KeyType">KeyType</a> { "public", "private", "secret" };
 
-typedef DOMString <a href="#dfn-KeyUsage">KeyUsage</a>;
+enum <a href="#dfn-KeyUsage">KeyUsage</a> { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", "unwrapKey" };
 
 [Exposed=(Window,Worker)]
 interface <dfn id="dfn-CryptoKey">CryptoKey</dfn> {
--- a/spec/Overview.html	Thu Oct 30 15:59:14 2014 -0700
+++ b/spec/Overview.html	Thu Oct 30 16:00:21 2014 -0700
@@ -1090,7 +1090,7 @@
         <div class="block"><div class="blockTitleDiv"><span class="blockTitle">IDL</span></div><div class="blockContent"><pre class="code"><code class="idl-code">
 enum <a href="#dfn-KeyType">KeyType</a> { "public", "private", "secret" };
 
-typedef DOMString <a href="#dfn-KeyUsage">KeyUsage</a>;
+enum <a href="#dfn-KeyUsage">KeyUsage</a> { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", "unwrapKey" };
 
 [Exposed=(Window,Worker)]
 interface <dfn id="dfn-CryptoKey">CryptoKey</dfn> {