Add option to enable ECDSA key for Java API.

Review URL: https://codereview.webrtc.org/1312293003

Cr-Commit-Position: refs/heads/master@{#9835}
This commit is contained in:
glaznev
2015-09-01 11:31:27 -07:00
committed by Commit bot
parent eebc0996bf
commit 97579a4e12
7 changed files with 54 additions and 3 deletions

View File

@ -421,6 +421,8 @@ public class PeerConnectionClient {
rtcConfig.tcpCandidatePolicy = PeerConnection.TcpCandidatePolicy.DISABLED;
rtcConfig.bundlePolicy = PeerConnection.BundlePolicy.MAXBUNDLE;
rtcConfig.rtcpMuxPolicy = PeerConnection.RtcpMuxPolicy.REQUIRE;
// Use ECDSA encryption.
rtcConfig.keyType = PeerConnection.KeyType.ECDSA;
peerConnection = factory.createPeerConnection(
rtcConfig, pcConstraints, pcObserver);