Module webrtc.java

Class RTCIceServer


  • public class RTCIceServer
    extends Object
    The RTCIceServer is used to describe the STUN and TURN servers that can be used by the ICE Agent to establish a connection with a peer.
    Author:
    Alex Andres
    • Field Detail

      • urls

        public List<String> urls
        List of STUN or TURN URI(s) associated with this server. The "host" part of the URI may contain either an IP address or a hostname. Valid formats are described in RFC7064 and RFC7065.
      • username

        public String username
        The username to be used when the TURN server requests authorization.
      • password

        public String password
        The password to be used when the TURN server requests authorization.
      • tlsCertPolicy

        public TlsCertPolicy tlsCertPolicy
        The TLS certificate policy.
      • hostname

        public String hostname
        If the URIs in urls only contain IP addresses, this field can be used to indicate the hostname, which may be necessary for TLS (using the SNI extension). If urls itself contains the hostname, this isn't necessary.
      • tlsAlpnProtocols

        public List<String> tlsAlpnProtocols
        List of protocols to be used in the TLS ALPN extension.
      • tlsEllipticCurves

        public List<String> tlsEllipticCurves
        List of elliptic curves to be used in the TLS elliptic curves extension. Only curve names supported by OpenSSL should be used (eg. "P-256","X25519").
    • Constructor Detail

      • RTCIceServer

        public RTCIceServer()
        Creates an instance of RTCIceServer.