[ortc] Unsupported algorithm on RTCDtlsTransport.start

lgrahl has just created a new issue for https://github.com/w3c/ortc:

== Unsupported algorithm on RTCDtlsTransport.start ==
In the [RTCDtlsTransport.start]() method, the implementation should check whether the fingerprint algorithm is supported and raise an appropriate exception.

For example, implementations may decide to not support SHA-1 but that does not make the DTLS parameters invalid. So, I don't think `InvalidParameters` is what we want to raise. My proposal would be `NotSupportedError` as it is also used in [RTCCertificate.generateCertificate](http://draft.ortc.org/#dom-rtccertificate-generatecertificate) and in the [Web Cryptography API](https://w3c.github.io/webcrypto/Overview.html) for that purpose.

Related tweet from @ibc: https://twitter.com/ibc_tw/status/902121596613271552

Please view or discuss this issue at https://github.com/w3c/ortc/issues/752 using your GitHub account

Received on Wednesday, 30 August 2017 22:04:46 UTC