Interface DtlsControl

    • Field Detail

      • UDP_TLS_RTP_SAVP

        static final String UDP_TLS_RTP_SAVP
        The transport protocol (i.e. <proto>) to be specified in a SDP media description (i.e. m= line) in order to denote a RTP/SAVP stream transported over DTLS with UDP.
        See Also:
        Constant Field Values
      • UDP_TLS_RTP_SAVPF

        static final String UDP_TLS_RTP_SAVPF
        The transport protocol (i.e. <proto>) to be specified in a SDP media description (i.e. m= line) in order to denote a RTP/SAVPF stream transported over DTLS with UDP.
        See Also:
        Constant Field Values
    • Method Detail

      • getLocalFingerprint

        String getLocalFingerprint()
        Gets the fingerprint of the local certificate that this instance uses to authenticate its ends of DTLS sessions.
        Returns:
        the fingerprint of the local certificate that this instance uses to authenticate its ends of DTLS sessions
      • getLocalFingerprintHashFunction

        String getLocalFingerprintHashFunction()
        Gets the hash function with which the fingerprint of the local certificate is computed i.e. the digest algorithm of the signature algorithm of the local certificate.
        Returns:
        the hash function with which the fingerprint of the local certificate is computed
      • setRemoteFingerprints

        void setRemoteFingerprints​(Map<String,​String> remoteFingerprints)
        Sets the certificate fingerprints presented by the remote endpoint via the signaling path.
        Parameters:
        remoteFingerprints - a Map of hash functions to certificate fingerprints that have been presented by the remote endpoint via the signaling path
      • setSetup

        void setSetup​(DtlsControl.Setup setup)
        Sets the value of the setup SDP attribute defined by RFC 4145 "TCP-Based Media Transport in the Session Description Protocol (SDP)" which determines whether this instance is to act as a DTLS client or a DTLS server.
        Parameters:
        setup - the value of the setup SDP attribute to set on this instance in order to determine whether this instance is to act as a DTLS client or a DTLS server
      • setRtcpmux

        void setRtcpmux​(boolean rtcpmux)
        Enables/disables rtcp-mux.
        Parameters:
        rtcpmux - whether to enable or disable.