Re: [push-api] Message encryption (#130)

> +      <p>
> +        The <code><dfn id="widl-PushSubscription-getKey-ArrayBuffer-PushEncryptionKeyName-name"
> +        data-lt="PushSubscription-getKey">getKey</dfn></code> method retrieves an encryption key
> +        using the following process:
> +      </p>
> +      <ol>
> +        <li>Find the internal slot that contains the encryption key named by the <code>name</code>
> +        argument.
> +        </li>
> +        <li>If an encryption key was not found, return <code>null</code>.
> +        </li>
> +        <li>If the encryption key represents an asymmetric key pair, set <var>key</var> to the
> +        serialized value of the public key from the key pair. This uses the serialization format
> +        defined in the specification for the name.
> +        </li>
> +        <li>If the encryption key represents a symmetric key, set <var>key</var> to the serialized

No need to define behavior for symmetric keys until the enumeration lists one.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/130/files#r37866126

Received on Tuesday, 25 August 2015 13:47:11 UTC